in reply to Re^4: Windows System Command
in thread Windows System Command

Try putting the command into a .bat file; and then invoke that bat file from Perl using system.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^6: Windows System Command
by tarunmudgal4u (Sexton) on Aug 08, 2012 at 11:58 UTC
    Hi, no improvements. Still the same error :(

      What output do you get from adding this line just before the call to system?

      print Win32::LoginName(); system ...;

      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

      So you run a batch file and it doesn't work? If so this is a problem with the command or how you're calling it (you don't see an error message displayed?) and not perl.