Author Topic: Help with a .bat file  (Read 1916 times)

0 Members and 1 Guest are viewing this topic.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Help with a .bat file
« 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)?

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Help with a .bat file
« Reply #1 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.
« Last Edit: September 07, 2011, 03:17:09 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.