Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Linux when I have a folder structure like :

~/projects
~/bin

I could go to projects and start whatever program is in bin with

../bin/binary_to_launch

In Windows when I try the same thing, I get

'..' is not recognized as an internal or external command, operable program or batch file.

Is there a way to start program from relative path in Windows?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Windows uses backslashes (\) instead of slashes (/). Try

..\bin\binary_to_launch
share|improve this answer
add comment

You're probably using forward slashes (/) as path separators. Switch to backward ones (\) and the program will start as expected.

In Windows, both slash types can generally be used interchangeably. CMD.EXE is an exception to this, since most console programs use forward slashes to denote command switches.

share|improve this answer
    
Se prolava gia ena lepto :) –  terdon Feb 6 '13 at 16:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.