|
|
| laziness, impatience, and hubris | |
| PerlMonks |
MS system open file with spaceby welle (Beadle) |
| on Feb 20, 2013 at 18:55 UTC ( #1019827=perlquestion: print w/ replies, xml ) | Need Help?? |
|
welle has asked for the
wisdom of the Perl Monks concerning the following question:
Dear monks It's a trivial question that was already discussed in the past...but unfortunatelly I am not able to make it work. I just want to open in Windows a folder knowing the path and its name. I usually do it with system("start $dir_to_open"). This just works fine exept if the folder name has spaces. I've tried with: $folder_name="AA BB";my $dir_to_open = "files\\data\\$folder_name\"; or my $dir_to_open = "files\\data\\\"$folder_name\""; or my $dir_to_open = "files/data/\"$folder_name\"";
Windows just prompts an error message (path not found). What I am doing wrong?
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||