Jump to content

Recommended Posts

Posted

I can get this script to try and expand the files the same folder, but it errors out reporting the folder (file) exists

CD /D D:\scvpack.XP\07202004
D:\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 -


Posted

Figured it out. I guess thats why I get the the little $$$.

CD /D <folderpath>
FOR %X IN (kb*) DO %X /x:.\%~nX
FOR %X IN (q*) DO %X /x:.\%~nX

\

bl0 me. :)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...