files with a space in them, How you open them?Solved

Booting, installing, newbie
Post Reply
Message
Author
User avatar
eponyn
Posts: 31
Joined: Mon 24 Jul 2006, 08:36

files with a space in them, How you open them?Solved

#1 Post by eponyn »

I've been trying most of my favorite windows programs in Puppy with Wine to minimize my time in that operating system and in the process I've been making scripts for those that work to run them from a desktop icon. My problem is with those programs that are under the 'Program Files' folder in windows when I make the script:
#!/bin/sh
wine /mnt/sda2/Program Files/WinRAR/WinRAR.exe
it does not recognize the directory 'Program"
it would not work with Program_Files or with ProgramFiles, and I can't rename the directory becaues so many things in XP point to it.
Does anyone know a way to get around this?
Many thanks

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

wine "/mnt/sda2/Program Files/WinRAR/WinRAR.exe"

Mark

User avatar
eponyn
Posts: 31
Joined: Mon 24 Jul 2006, 08:36

#3 Post by eponyn »

Awesome! it works great. Thanks for the quick help, you guys rock!

User avatar
Yaverot
Posts: 94
Joined: Thu 22 Dec 2005, 03:23
Contact:

#4 Post by Yaverot »

The next time I reinstall windows on an old computer (new computers are getting puppy, but I have a few games I'm not giving up yet.) immedately after install, I'll use powertools (or the like) to rename any directory with a space. Because that tool fixes the name in the registry as well.
There is a yellow one that won't accept the black one
That won't accept the red one that won't accept the white one
And different strokes for different folks

User avatar
fluxit
Posts: 326
Joined: Sat 24 Jun 2006, 04:14
Location: Ketchikan, AK USA

#5 Post by fluxit »

Alternately, you can escape the space using backslash. wine /mnt/sda2/Program\ Files/WinRAR/WinRAR.exe

User avatar
Ian
Official Dog Handler
Posts: 1234
Joined: Wed 04 May 2005, 12:00
Location: Queensland

#6 Post by Ian »

You could probably try a wildcard *

User avatar
efiguy
Posts: 164
Joined: Thu 07 Sep 2006, 02:51

#7 Post by efiguy »

eponyn,

Would you share a link to ISO for Puppy With Wine, for I'm going to be following along your path also. I was on the Wine website a few days ago trying to figure out what to download, believe they have just annouced an update also.

Thank you,
efiguy

Post Reply