in reply to system() on Win32

@INC is for modules, not programs.
C:\>perl -e"system qw[ net stat ]" The syntax of this command is: NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION | SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]
If you want to spawn cmd.exe, you should specify the absolute path to cmd.exe.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^2: system() on Win32
by holli (Abbot) on Mar 04, 2005 at 10:00 UTC
    On every sane windows system cmd.exe is in the PATH and therefore specifying the complete path is unnecessary.

    I strongly believe it is a security policy issue as mentioned elsewhere in this thread.


    holli, /regexed monk/
Re^2: system() on Win32
by manoser (Initiate) on Mar 04, 2005 at 09:38 UTC
    Honestly, I do not know how to specify the absolute path to cmd.exe.

    I mean, You can't just pass it as an additional variable when You call system, can You?

    Thanks