Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: MS system open file with space

by Dallaylaen (Pilgrim)
on Feb 21, 2013 at 07:12 UTC ( #1019907=note: print w/replies, xml ) Need Help??


in reply to MS system open file with space

Writing this without a Windows machine at hand, but what about using list form of system instead? It should escape the arguments for you.
system ('start', $dir_to_open);
Does this solve the problem?

Replies are listed 'Best First'.
Re^2: MS system open file with space
by BillKSmith (Priest) on Feb 21, 2013 at 13:54 UTC
    When a pathname includes spaces, windows requires double quotes around the entire path, as BrowserUK has already shown.
    Bill

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019907]
help
Chatterbox?
[msh210]: *finally* tracked down the source of nonsensical results: I had sum0 (@ary / $foo) instead of (sum0 @ary) / $foo

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-01-17 17:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (158 votes). Check out past polls.