Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: MS system open file with space

by Dallaylaen (Monk)
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?


Comment on Re: MS system open file with space
Download Code
Re^2: MS system open file with space
by BillKSmith (Deacon) 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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2015-07-03 11:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls