echo off echo %0 running... rem This will create a .zip version of a file, using the same name. rem It is especially helpful when zipping long file names, and you rem want to preserve the long file name within the .zip file. rem This is a command line program. The Drag and Drop version is rem ZipMakeExp.bat. Call this program as 'Zipmake filename'. This rem version only needs to be in your Path statement. Both versions rem require the use of the PKZip Commandline program, available at: rem http://www.pkware.com/. (c) W. Baldwin, 3/2000. echo Remember to enclose the source filename in quotes, if it is a long echo file name, and you want to preserve the long file name in the .zip. if '%1==' for %%v in (echo goto:ERROR) do %%v Required filename missing. if exist temp.zip for %%v in (echo goto:ERROR) do %%v Temp.zip already exists pkzip25 -add -max temp.zip %1 if errorlevel 1 goto error ren %1 *.tmp ren temp.zip %1 ren %1 *.zip ren *.tmp %1 goto done :ERROR echo An error has occurred. :DONE echo Finished