develooper Front page | perl.par | Postings from October 2017

[rt.cpan.org #123232] commandline arguments under windows

Thread Previous
From:
Josef Gruber via RT
Date:
October 10, 2017 10:27
Subject:
[rt.cpan.org #123232] commandline arguments under windows
Message ID:
rt-4.0.18-16650-1507631264-683.123232-15-0@rt.cpan.org
Tue Oct 10 06:27:44 2017: Request 123232 was acted upon.
Transaction: Ticket created by Josef.gruber@documatrix.com
       Queue: PAR
     Subject: commandline arguments under windows
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: Josef.gruber@documatrix.com
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=123232 >


Hello,
I use pp in the windows environment:
call pp -X customer.pm -M MIME::Lite -M Crypt::DES_EEE3 -l 
libatomic-1.dll -l libbz2-1_.dll -l libcharset-1_.dll -l 
libcrypto-1_1_.dll -l libdb-6.2_.dll -l libexpat-1_.dll -l 
libexslt-0_.dll -l libffi-6_.dll -l libfreeglut_.dll -l 
libfreetype-6_.dll -l libgcc_s_dw2-1.dll -l libgd-3_.dll -l 
libgdbm-4_.dll -l libgdbm_compat-4_.dll -l libgfortran-4.dll -l 
libgif-7_.dll -l libgomp-1.dll -l libiconv-2_.dll -l libjpeg-9_.dll -l 
liblzma-5_.dll -l libmysql_.dll -l libpng16-16_.dll -l libpq_.dll -l 
libquadmath-0.dll -l libssh2-1_.dll -l libssl-1_1_.dll -l libssp-0.dll 
-l libstdc++-6.dll -l libt1-5_.dll -l libtiff-5_.dll -l libtiffxx-5_.dll 
-l libwinpthread-1.dll -l libxml2-2_.dll -l libXpm_.dll -l 
libxslt-1_.dll -l zlib1_.dll  copyZip.pl -o 
m:\kunden\ISTA\Kaltmiete\customize\copyZipW32.exe

The executeable is created fine.
Now I call the executeable from a bat-File:
M:\kunden\ISTA\Kaltmiete\customize>copyZipW32.exe -e cold -e pdf -d 
"f:\temp me" "M:\kunden\ISTA\Kaltmiete\customize\Kopie von if1 (1).pdf" 
"M:\kunden\ISTA\Kaltmiete\customize\Kopie von if1 (1).cold"
vor getopt
Parameter: -e at script/copyZip.pl line 35.
Parameter: cold at script/copyZip.pl line 35.
Parameter: -e at script/copyZip.pl line 35.
Parameter: pdf at script/copyZip.pl line 35.
Parameter: -d at script/copyZip.pl line 35.
Parameter: f:\temp at script/copyZip.pl line 35.
Parameter: me at script/copyZip.pl line 35.
Parameter: M:\kunden\ISTA\Kaltmiete\customize\Kopie at script/copyZip.pl 
line 35.
Parameter: von at script/copyZip.pl line 35.
Parameter: if1 at script/copyZip.pl line 35.
Parameter: (1).pdf at script/copyZip.pl line 35.
Parameter: M:\kunden\ISTA\Kaltmiete\customize\Kopie at script/copyZip.pl 
line 35.
Parameter: von at script/copyZip.pl line 35.
Parameter: if1 at script/copyZip.pl line 35.
Parameter: (1).cold at script/copyZip.pl line 35.
------------------
Parameter: me at script/copyZip.pl line 60.
Parameter: M:\kunden\ISTA\Kaltmiete\customize\Kopie at script/copyZip.pl 
line 60.
Parameter: von at script/copyZip.pl line 60.
Parameter: if1 at script/copyZip.pl line 60.
Parameter: (1).pdf at script/copyZip.pl line 60.
Parameter: M:\kunden\ISTA\Kaltmiete\customize\Kopie at script/copyZip.pl 
line 60.
Parameter: von at script/copyZip.pl line 60.
Parameter: if1 at script/copyZip.pl line 60.
Parameter: (1).cold at script/copyZip.pl line 60.

The command line parameters are now splitted at each blank character.
Is there a special syntax to overcome this problem?

best regards
Josef

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About