Michael Leonard
asked on
please advise how i can start this script in a different directory
can someone provide a way that i can run this script from a different directory, than the directory that I'm zipping up the folders:
to clarify. I'd like to run the script from c:\scripts
but have it execute on: c:\data\target1\
many thanks
S.
@echo off
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.zip" "%%X\"
to clarify. I'd like to run the script from c:\scripts
but have it execute on: c:\data\target1\
many thanks
S.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER