1.

Solve : Batch file help!?

Answer»

So, I've recently dug out my old copy of Doom ][, installed it, patched, and downloaded ZDoom.

Well, cutting to the chase, I've downloaded custom WADS for the game.

This means that if I want to run a custom WAD, I'll have to go into cmd, type: C:\Games\ZDoom\zdoom.exe -file WADNAME.WAD

This gets pretty tiresome, so I've basically made a workaround to this by making a BATCH file and dropping it in my C:\Documents and Settings\User\ directory so when I load up cmd, it's there and I can type commands:

Code used:

Code: [Select]:: wadload.bat
:: ZDoom WAD Loader
@ECHO OFF

C:\Games\ZDoom\zdoom.exe -file %1
This way I can type wadload enigma.wad per se.

But this makes me have to open cmd and I am lazzzzzy.

So I was wondering if there was a way that I could just have a batch on the desktop that would basically ask for my imput and load

So when it starts up it would go:

Quote

WAD Name: [where I type the name]

And upon pressing enter, would just load the proper commands.

Is there any way to do this?Like this?

Code: [Select]:: wadload.bat
:: ZDoom WAD Loader
@ECHO OFF
set /p name=Enter the Name:
C:\Games\ZDoom\zdoom.exe -file %name%

Does it help?Code: [Select]:: wadload.bat
:: ZDoom WAD Loader
@ECHO OFF
set /p name=Enter the Name:
C:\Games\ZDoom\zdoom.exe -file %name%.wad
EXIT
Thanks man! THREW in an EXIT there because the prompt is pretty much useless after I enter the name in. Also made it so the the .wad is already typed for über-laziness FACTOR.


Discussion

No Comment Found