Omnimaga
General Discussion => Technology and Development => Computer Programming => Topic started by: Hot_Dog on September 07, 2011, 03:09:17 pm
-
I created this .bat file to help me compress graphics using pucrunch.
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)?
-
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.