Script to open command window and run an executable
I am trying to write a scipt where I can open a command window first and then it should go to the location where there is a direct exe, so it would launch .
This exe when opened in a comand window shows some options, it does not do the same when double clicked directly.
So I want a script where the User on clicking the batch file it will open the command window and then run this exe so it will show those options on the command window.
Any help is appreciated.
Community Chosen Answer
cmd.exe c:\directory\subdirectory\directx.exe /any switches
You can place this batch on a share and create a shortcut on the desktop that points to it and put the directx directory in the "start in" box of the shortcut.
should work for you. this will run with the current users rights, you would need to run the batch as an admin if needed.