Question : Batch File Script

Hi Guys,
 
I am writing 7zip command script to compress and move the compress file to indiviual directory. But this script is creating zip folder with in the file directory. With out any name (eg. .Zip)
 
All want is I got two files in CSV format, PLUSale and ProductCatalog. I need to compress them and move the files to indiviual directory thats all.
 
I wrote below script but it not moving and compressing as per my need.
 
set SSIS_FTPFILE_ORG=I:\Information Technology\Retail\Durga\OsPos\Store Files\
set SSIS_FTPFILE_DEST=I:\Information Technology\Retail\Durga\OsPos
set LOGFILE= "%SSIS_FTPFILE_DEST%zbatlog%curdate%.txt"
 
I:
cd  "%SSIS_FTPFILE_ORG%"
"C:\Program Files\7-zip\7z.exe" a "%SSIS_FTPFILE_DEST%".zip >> %LOGFILE%
 
move /Y ProductCatalog*.ZIP .\ProductCatalog >> %LOGFILE%
move /Y Plu*.ZIP .\PluSales >> %LOGFILE%
 
Any help much appreciated.
 
Thank,

Answer : Batch File Script

So why not do it all with the ZIP, like:

set SSIS_FTPFILE_ORG=I:\Information Technology\Retail\Durga\OsPos\Store Files\
set SSIS_FTPFILE_DEST=I:\Information Technology\Retail\Durga\OsPos
set LOGFILE=%SSIS_FTPFILE_DEST%zbatlog%curdate%.txt
"C:\Program Files\7-zip\7z.exe" a "%SSIS_FTPFILE_DEST%\ProductCatalog\ProductCatalog.zip" "%SSIS_FTPFILE_ORG%\ProductCatalog.csv" >>"%LOGFILE%"
"C:\Program Files\7-zip\7z.exe" a "%SSIS_FTPFILE_DEST%\PluSales\PluSales.zip" "%SSIS_FTPFILE_ORG%\PluSales.csv" >>"%LOGFILE%"

~bp
Random Solutions  
 
programming4us programming4us