in reply to Win32 spaces in path, open Excel w/ 'system' and glob/DosGlob
Of course, the spaces in the path might still give you problems. You may need to use literal quotes around the path to prevent problems.use strict; use warnings; use File::Spec; my $path=File::Spec->catfile('C:',"Program Files","Microsoft Office"," +Office","Excel.exe"); print "\$path gives you: $path\n"; __END__ Output: $path gives you: C:\Program Files\Microsoft Office\Office\Excel.exe.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Win32 spaces in path, open Excel w/ 'system' and glob/DosGlob
by vek (Prior) on Oct 24, 2003 at 00:11 UTC |