December 31, 200718 yr 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, 200818 yr by Yzöwl pushd location changed for safety's sake
December 31, 200718 yr 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
January 11, 200818 yr 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)
January 31, 200818 yr 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.
Create an account or sign in to comment