Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: Hot_Dog on September 07, 2011, 03:09:17 pm

Title: Help with a .bat file
Post by: Hot_Dog on September 07, 2011, 03:09:17 pm
I created this .bat file to help me compress graphics using pucrunch.

Code: [Select]

spasm FactoryEscapeGraphics.z80 FactoryEscapeGraphics.bin
pucrunch -d -c0 FactoryEscapeGraphics.bin FactoryEscapeGraphics.aaa
bintohex FactoryEscapeGraphics.aaa a.asm


What do I need to do to replace FactoryEscapeGraphics with a name of my choosing (by inputting the name into command prompt)?
Title: Re: Help with a .bat file
Post by: Juju on September 07, 2011, 03:12:08 pm
I believe it's with the SET command. Check SET /?.

Edit: SET /P variable=prompt, then you should be able to access it as %variable%.

Else you can use %1 to get the name as a command line parameter.