1.

Solve : Help Running Program from Batch File?

Answer»

im running widnows XP SP2. BTW So when i run WORLD of Warcraft, it takes alot of memory naturally, so i kill the process explorer.exe, and open a few other programs from the "New Task" in Task Manager. but the PROBLEM is, when i want to run WoW, i have to go to New Task and then browse all the way through to "C:/Program Files/World of Warcraft/WoW.exe"

so i thought i'd make an easy batch file to go through the trouble for me
Here is the code i used
Code: [Select]start "C:/Program Files/World of Warcraft/WoW.exe"
so i saved the batch file in system32 as wow.bat. all i do now is type wow in New Task, and it SHOULD run world of warcraft. but all it does is open a new cmd window that says C:/Program Files/World of Warcraft/WoW.exe at the top.

is there a problem with my code? if so. what is wrong? Well shouldn't the code be pointing to an executable?

And I highly unrecommend stopping the explorer process for any reason, I'd be very surprised if it was the sole culprit behind less responsive gameplay..

On my computer, running Vista Ultimate the explorer.exe process runs between 0-5% and ~60MB of RAM. This is not a problem for me personally, as I have an E6600 and 2GB RAM. XP does use a considerable amount less RESOURCES than Vista.ooh my BAD i just didnt type that part in. it does point to wow.exe

this PC is just a little bit older, and when i kill explorer i get a slightly higher framerate. its just a personal choice.

but nothing is wrong with the code, assuming it points to WoW.exe, right?Try:

start "" "C:/Program Files/World of Warcraft/WoW.exe"thanks, that worked

what is the syntax that is responsible for that?The quotation marks.Why is 'start ""' different from just 'start'?Who knows....

If you go to Command Prompt and type 'start' and press Enter, you will get another command prompt window.As Carbon said, start opens up a new CMD window, and the syntax for start is:
start ["title"] path ....... etc. or something like that.

When the_1ron_lung wrote start "C:/Program Files/World of Warcraft/WoW.exe", he was just opening a new CMD window, with it's title set to "C:/Program Files/World of Warcraft/WoW.exe". By adding the "", that takes care of the title, and then "C:/Program Files/World of Warcraft/WoW.exe" actually means the path.But if you want to just start another batch file, you just have to do:
start "path\to you\file\batch file.bat", without the extra ' "" '



Discussion

No Comment Found