problem using Pkzip in a batch file
Posted: 07 Sep 2011 09:52
Hi,
I am trying to write a batch file which takes all of the Excel files in a folder and zips them into a .zip file in that same folder. Here is the batch file code so far:
The code has a pause included so I can read what it's doing. ::@echo off is intentional - so it displays everything it's doing in the window (for now while debugging is occurring).
In the C:\WINDOWS\system32\cmd.exe window the error message says " 'Pkzip' is not recognized as an internal or external command, operable program or batch file." The computer is a PC running Windows XP Professional. What needs to be changed to get this to work?
Thanks, knot22
I am trying to write a batch file which takes all of the Excel files in a folder and zips them into a .zip file in that same folder. Here is the batch file code so far:
Code: Select all
::@echo off
Pkzip -m BOreportsInExcel.zip *.xls
pause
The code has a pause included so I can read what it's doing. ::@echo off is intentional - so it displays everything it's doing in the window (for now while debugging is occurring).
In the C:\WINDOWS\system32\cmd.exe window the error message says " 'Pkzip' is not recognized as an internal or external command, operable program or batch file." The computer is a PC running Windows XP Professional. What needs to be changed to get this to work?
Thanks, knot22