in reply to system perl api fails with exit code 65280 on Win 2003

I have ensured that C:/zip.exe

The system code simply means that the program did not run.

The error code tells you that the command could not be found.

The reason is that the command shell expects forward slashes (\) not backslashes (/) in paths.

The reason is that the command shell expects backslashes (\) not forward slashes (/) in paths.

Change  my $zipExec='C:/zip.exe'; to  my $zipExec='C:\\zip.exe'; and your command will probably work.


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.

Replies are listed 'Best First'.
Re^2: system perl api fails with exit code 65280 on Win 2003
by karlgoethebier (Abbot) on May 22, 2013 at 15:24 UTC
    «The reason is that the command shell expects forward slashes (\) not backslashes (/) in paths.»

    But BrowserUk: isn't \ backslash and / is forward slash?

    Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      D'oh! karlgoethebier++ :)


      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.
Re^2: system perl api fails with exit code 65280 on Win 2003
by Prakash Babu (Initiate) on May 22, 2013 at 14:54 UTC

    I tried "/", "\", "\\" but hitting the same issue.

    thanks,
    Prakash

      Hm. What's in $destinationPath?


      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.

        Hi,
        Initially even I thought there might be something wrong with the command formation, then I tried a different set of simple commands and all of them are failing with the same error. So this looks to be some environment issue.

        C:/WINDOWS/system32/cmd.exe
        C:\\WINDOWS\\system32\\cmd.exe
        C:\WINDOWS\system32\cmd.exe
        C:/zip.exe -help
        C:\\zip.exe -help
        C:\zip.exe -help

        Are there any Windows specific environment restrictions that could cause this issue ?

        thanks,
        Prakash