On Tue, Jan 24, 2012 at 12:34 PM, Bambi J Saastad <[email protected]> wrote: > F:\ > F:\101456 > F:\101456\test > F:\101456\test2 --> 101456.zip > F:\101457 > F:\101457\test > F:\101457\test2 --> 101457.zip
CD /D F:\ FOR /D %i IN (*.*) DO zip -r %i.zip %i I think /D is the right switch but am not at a CMD prompt to check. FOR /? will tell you. Assumes you have Info-Zip's ZIP.EXE in PATH. If you don't, get it; it's free and works great. -- Ben ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
