MastaVR6 Posted August 5, 2004 Share Posted August 5, 2004 I can get this script to try and expand the files the same folder, but it errors out reporting the folder (file) existsCD /D D:\scvpack.XP\07202004D:\scvpack.XP\07202004>FOR %X IN (kb*.exe) DO "%~nX.exe /x:%X"results in:D:\scvpack.XP\07202004>"KB842773.exe /x:KB842773.exe"The directory name is invalid.how can I get the ' /x:KB842773.exe' output to be '/x:KB842773', creating the desired folder structure?me = BTW this is placed here in unattended Win due to the embedding of these expanded files into the unattend CD.TIA - Link to comment Share on other sites More sharing options...
MastaVR6 Posted August 5, 2004 Author Share Posted August 5, 2004 Figured it out. I guess thats why I get the the little $$$.CD /D <folderpath>FOR %X IN (kb*) DO %X /x:.\%~nXFOR %X IN (q*) DO %X /x:.\%~nX\bl0 me. 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