Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Batch File Script Issue

Avatar of Dreamslogic
Dreamslogic asked on
Windows Batch
5 Comments1 Solution363 ViewsLast Modified:
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.

Below script works fine, but it has to ZIP the files with same name as CVS file. Which I am not understanding how to do


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%"

Any help please.

Thanks,



ASKER CERTIFIED SOLUTION
Avatar of Jerry Miller
Jerry MillerFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers