Try giving the full path c:/exedir/test.exe or ./test.exe I ran into this problem and never figured out what the difference was.
> -----Original Message----- > From: Chris Mason [mailto:[EMAIL PROTECTED] > Sent: Friday, November 07, 2008 7:29 AM > To: par@perl.org > Subject: PAR::Packer Problem under Cygwin > > Hi All, > > I am hoping that you can answer what I think is a very simple question > regarding PAR::Packer. I am using the "pp" utility to package up a Perl > program under Cygwin on Windows XP using the following syntax: > > pp -o test.exe test.pl > > This produces test.exe which depends on various cygwin dlls. If I > attempt to run test.exe by double clicking on it from within Windows it > works fine, but if I attempt to run it from a Windows command prompt > (cmd.exe) then I get the following output: > > Usage: test [ -Alib.par ] [ -Idir ] [ -Mmodule ] [ src.par ] [ program.pl ] > test [ -B|-b ] [-Ooutfile] src.par > > I can't think what the difference is between running a program by double > clicking on it versus running it from a command prompt? Has anyone else > seen this problem before or know what I am going wrong? > > Thanks, > Chris