in reply to Re^4: Win32 wperl open Console when system
in thread Win32 wperl open Console when system
Using single-quote as a delimiter protects the command from Perl's double-quote interpolation, passing it on to the shell instead:
perl -e "qx(explorer.exe C:\\Path\\To\\my.pdf)"
works
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Win32 wperl open Console when system
by fdesar (Beadle) on Jan 21, 2020 at 15:39 UTC | |
by Anonymous Monk on Jan 21, 2020 at 21:32 UTC | |
Re^6: Win32 wperl open Console when system
by soonix (Chancellor) on Jan 21, 2020 at 13:10 UTC |