View Full Version : [all variants] [SOLVED] Cant get into (wine) C:\Program Files

Ducatiboy Stu
August 11th, 2008, 06:05 AM
when I try to go into c\Program files it says that there is no such directory.....

ncts@ncts:~$ cd .wine
ncts@ncts:~/.wine$ ls
dosdevices drive_c system.reg userdef.reg user.reg
ncts@ncts:~/.wine$ cd drive_c
ncts@ncts:~/.wine/drive_c$ ls
Program Files windows
ncts@ncts:~/.wine/drive_c$ cd Program Files
bash: cd: Program: No such file or directory


August 11th, 2008, 06:06 AM
Try cd Program\ Files
You have to escape the space.

August 11th, 2008, 06:08 AM
Or, enclose it in double quotes:

cd "Program Files"

EDIT: The reason maybe is to remove ambiguity between the names as they are considered two different names, so you have to place the break (\) character or the (") quote character so the shell would know that it's one item name.

August 11th, 2008, 06:11 AM
Just start typing Program and hit tab. It'll fill it out for you with the proper escaping (assuming you're using bash or similar shell with tab completion) :)

Ducatiboy Stu
August 11th, 2008, 06:24 AM
Thanks Guys...makes sense now