Click to See Complete Forum and Search --> : Wine-related command line question
Apostata
01-04-2001, 02:05 PM
Hello,
I want to run a program that is located on a windows partition, in the Program Files folder. However, I can't figure out how to get access to "Program Files" using the console. I tried Program_Files and Program%Files, but that didn't work either.
I'm sure the solution is obvious to many of you, but I really did look around this site before asking :)
Thanks for your help!
klamath
01-04-2001, 02:12 PM
Use quotes (single or double) around the entire filename/path, or use a backslash in front of the space to escape it.
------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Better Bulletin Board (http://bbb.sourceforge.net)
A_Lawn_GNOME
01-04-2001, 02:15 PM
You can either encase the whole path in quotes like "C:\Program Files\file" or use \ to escape the space. The \ tells the shell to treat the next character literally and not as part of the command. That is, use C:\\Program\ Files\\file . The \\ means to escape the \, otherwise the shell would get hung up on the C:\ too.
Apostata
01-04-2001, 03:04 PM
thanks, guys!
klamath
01-04-2001, 04:13 PM
C:\\Program\ Files\\file
This won't work, no matter how many backslashes you use.
------------------
- Klamath
Get my GnuPG Key Here (http://klamath.dyndns.org/mykey.asc)
Looking for an open source project to contribute to? Check out the Better Bulletin Board (http://bbb.sourceforge.net)
knute
01-04-2001, 04:16 PM
You can also try cd Progra*
Wonderful thing about the linux cd command is that it can take wildcards... http://www.linuxnewbie.org/ubb/smile.gif
Yes, I have tried it and it works just fine..... Jut be sure that you don't have to dirs that start with Progra... http://www.linuxnewbie.org/ubb/smile.gif
------------------
Knute
If it's on the network and ain't secured, it's free game.