troubleshooting Question

please advise how i can start this script in a different directory

Avatar of siber1
siber1 asked on
PowershellVB ScriptActive Directory
2 Comments1 Solution402 ViewsLast Modified:
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:

@echo off
for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "" "%%X\"

Open in new window

to clarify.  I'd like to run the script from c:\scripts

but have it execute on:  c:\data\target1\

many thanks

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros