in reply to Win32 System() Weirdness
I suspect that quotes may be getting lost.
It's working fine for me, with ActiveState build 628, with the line:
This is Win2K. Maybe Win9x w/Command.COM has problems, I don't know.system '"C:\Program Files\Utilities\DskBench.exe" x y z' or die "$! $ +^E";
If all else fails, as a work-around use the short-name alias for the long directory names.
Hmm... playing around with it more, I found that it fails if there is another set of quotes!!
fails as you note.system '"C:\Program Files\Utilities\DskBench.exe" x y "foo z"' or die + "$! $^E";
I have a dim memory of a case where I couldn't get system to work right, and ended up spitting out a batch file and running that.
It is clearly a bug somewhere in the system processing. If you do tests like I suggested above, you might find that the presense of more quotes makes them all stripped, or something like that.
—John
|
|---|