Home » Questions » Computers [ Ask a new question ]

run exe from command prompt

run exe from command prompt

How do I run a .exe file from the command prompt?

Asked by: Guest | Views: 280
Total answers/comments: 3
Guest [Entry]

"You should add the c:\ path into your Windows system PATH so whatever drive you are in and when you execute the file.exe windows will look at your defined path and run your program there.

TO do this go to Windows
-My computer
-click right for Properties
- Advanced Button
- Environment Variables
- at the buttom of the windows you will see the PATH
- Edit it add ;c:\
and save
This should work
- I think it will need a reboot"
Guest [Entry]

"Create .bat or .cmd file and write content to

cd your_directory_one
start filename.exe

cd your_directory_second
start filename.exe

it work for me"
Guest [Entry]

You can also drag and drop the exe file on Command prompt (If UAC is set to low/Using builtin Administrator account) to execute it.