Manish Uskaikar wrote:
Hi All,

I would like to "zip" a file using perl script. I used following command:-

system ("zip <zip name> <file name>");

However this command fails when the filename is more than 8 characters. Since DOS does not support more than 8 characters. Is there any way by which I can zip a file, whose name is 9+ characters long? I am working on Windows 2000.

As long as you are using Win9x and up, you can do something like:


system "zip \"<zip name>\" \"<file name\""; # (I don't know if DOS supports single quotes)

If you're looking for a more universal solution, here would probably be a good place to start:

http://search.cpan.org/search?query=zip&mode=module

--
Andrew Gaffney


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to