Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run an EXE from a different directory?

Tags:

cmd

After a bit of googling and searching here, couldn't find the answer to this silly question!

For a structure like this...

dirZero |---dirOne |---|---myProgram.exe 

How do I run "myProgram" if my current directory is dirZero? I.E.,

C:\dirZero> dirOne/myProgram.exe 

...which obviously doesn't work. Thanks in advance.

like image 342
Ben Avatar asked Oct 11 '10 03:10

Ben


1 Answers

You should use a backslash \, instead of forward slash. /

C:\dirZero> dirOne\myProgram.exe 

Or, wrap it with double quotes "

C:\dirZero> "dirOne/myProgram.exe" 
like image 161
Ruel Avatar answered Oct 22 '22 05:10

Ruel