madbull Posted December 31, 2007 Share Posted December 31, 2007 (edited) I know that the below command is one way of deleting multiple files:pushd %TEMP%del popdI was wondering if there was a (similar) way to EXPAND multiple files instead of having to use multiple lines etc and to save a little bit of time perhaps.Thanks in advance, Edited January 11, 2008 by Yzöwl pushd location changed for safety's sake Link to comment Share on other sites More sharing options...
gunsmokingman Posted December 31, 2007 Share Posted December 31, 2007 Maybe something like this@Echo OffCLSColor F9Mode 75,9Set Dir=%CD%for %%i in ("%Dir%\*.*") do EXPAND *.*_ /RI also made a HTA that does both Makecab and Expand Files.MakeCabThread Link to comment Share on other sites More sharing options...
madbull Posted January 11, 2008 Author Share Posted January 11, 2008 Thanks for the replies! Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 11, 2008 Share Posted January 11, 2008 WAIT I got it for you here.....This will expand ALL cabbbed files in the archive then DELETE all cabbed files..WARNING does take a loooooooooong a** time to expand a whole i386 dir. Sorry does not show any progress bar or anything it just does its job.(To use simply place in the same dir as the cabbed files and run, then sit and wait for a minute) Link to comment Share on other sites More sharing options...
darkon11 Posted January 31, 2008 Share Posted January 31, 2008 Microsoft ® File Expansion Utility Version 5.2.3790.1830Copyright © Microsoft Corporation. All rights reserved.Expands one or more compressed files.EXPAND [-r] Source DestinationEXPAND -r Source [Destination]EXPAND -D Source.cab [-F:Files]EXPAND Source.cab -F:Files Destination -r Rename expanded files. -D Display list of files in source. Source Source file specification. Wildcards may be used. -F:Files Name of files to expand from a .CAB. Destination Destination file | path specification. Destination may be a directory. If Source is multiple files and -r is not specified, Destination must be a directory.As you can see you can use wildcards. If you don't rename use a different folder. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now