http://www.perlmonks.org?node_id=1019907


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 (Monsignor) 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