Discussion in 'Application Software' started by drazen11, Mar 30, 2010.
How to use batch file to run a program present in the same folder as the batch file?
Whatever the file name is and the path is just type that in CMD like a shortcut link. For example lets say you have a file called cleanup.exe in the root of your c drive.
The command is: "C:\cleanup.exe" with the quotes. It is that simple lol.
Use %~dp0Filename.exe to run the program in the same directory as the batch file.
that works too lol. By chance do you know a command to kill or close a exe file. Like for example I would like to make a batch schedule to run the KMS emulator keygen for Office 2010 automatically and tell it to run the keygen, then the activation command and then close the keygen again after it. IDK how to close a program with command prompt.
You need to login to view this posts content.
you're a genius, just what we needed, thank you very much