2

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?

2 Answers 2

1

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

..\bin\binary_to_launch
1

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.

1
  • Se prolava gia ena lepto :)
    – terdon
    Feb 6, 2013 at 16:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .