|
Answer» Hey guys,
Joined the forums just so I can ask this noobie question. As the subject states, I want to create a batch file that starts an App with its command-line parameters in place. Please note that i am not refering to a program shortcut. Here is an EXAMPLE of the App I wanna launch with its PARAMATERS ("I:\demo\SushiDX.exe" -debug) How do I turn this into a bat file. If I make this a shortcut, it works fine, but when its in batch format i get errors.
THanks guysSome programs need to be logged in to the directory where the excutable is. You didn't mention which version of Windows you have, but this should run in all of them:
Code: [Select]I: cd \demo SushiDX.exe -debug
Shortcuts have the "Start in" parameter which can point to the executable directory. In batch language, you have to duplicate the result using a different technique.
Hope this helps. 8-)Hey Sidewinder,
Let me clear up any confusion, first off my OS is XP SP2, and My "I" drive is a HDD. The following is the full path to the program
Code: [Select]I:\ATI Demos\DoubleCross\SushiDX.exe what code Do I type for the above to work?
ThanksI'd still use the same method:
Code: [Select]I: cd "\ATI Demos\DoubleCross" SushiDX.exe -debug Not sure if you still want the -debug SWITCH.
There are other ways to do this but:
Quote If I make this a shortcut, it works fine, but when its in batch format i get errors.
we don't what errors, so the best solution if one that can be done on any machine. 8-)Thanks for the quick reply.
Okay I think I understand now. The "CD" in your code stands for "CHANGE directory" right? I'll give it a try and let you know if it works
|