[sf-perl] [sfpug] Trustworthy laptop repair?
Michael Friedman
friedman at highwire.stanford.edu
Sat Jan 20 14:12:12 PST 2007
Sometimes it pays to ask the seemingly obvious question...
Did you try putting the path in quotes? How about escaping the space?
"Program\ Files".
Both of those work on unix derivatives (including Mac OS X) for files
with spaces in the path or name.
If those don't work, I assume CPAN has a solution for doing this on
Windows. CPAN has everything. :-)
-- Mike
On Jan 20, 2007, at 11:29 AM, Neil Heller wrote:
>
> I'm using Winderz and desire to launch an external executable using
> the
> "system" command. The problem comes in that one of the directories
> in the
> path to that executable has an embedded space in the name ("Program
> Files").
> I've thought of two ways to do it.
>
> 1) Launch the program from a batch file that I can call from the Perl
> script.
> 2) Incrementally change the directory (chdir) using wild cards.
>
> These work but are kludgy (at least in my mind)
> Does anybody have a "slick" way to do this?
>
> Neil Heller
> nheller at silcon.com
>
>
> _______________________________________________
> SanFrancisco-pm mailing list
> SanFrancisco-pm at pm.org
> http://mail.pm.org/mailman/listinfo/sanfrancisco-pm
---------------------------------------------------------------------
Michael Friedman HighWire Press
Phone: 650-725-1974 Stanford University
FAX: 270-721-8034 <friedman at highwire.stanford.edu>
---------------------------------------------------------------------
More information about the SanFrancisco-pm
mailing list