[thelist] Re: win32 perl, maxlength for @argv?

ashok at magicalkenya.com ashok at magicalkenya.com
Wed May 29 02:42:01 CDT 2002


Ok , you are encountering this 2046 limitation becuase perl2exe creates a
command prompt executable...
normal windowed win32 executables dont suffer from this limitation (they
have a limitation of 32 k as i had mentioned...)
what you could do is write a small vb executable  which will recieve the
Send To listing ...thus bypassing your 2046 limitation as the limitation is
now 32000+some ...
(if you need to cross the 32k limitation yu can use stuff like dde or drag
and drap apis... to transfer the info..)
your vb executable then copies the recieved file names into a text file
(lets call it output.txt)...
now if you can do a shell exec of your perlscript with this output file as
the parameter.
all you would need to do now is process each line of this file instead of
@argv to access the file names...





More information about the thelist mailing list