Batch Extract using EXPAND

Microsoft Windows xp professional w/sp2
February 23, 2010 at 20:02:17
Specs: Windows XP SP2
I'm trying to extract Windows XP file manually using this command

D:\XPSP2\I386\wordpad.ex_ c:\windows\system32\wordpad.exe

is there a simple batch file that can do this on multiple files?



See More: Batch Extract using EXPAND

Report •

February 23, 2010 at 21:35:44
not tested...
@echo off & setlocal enabledelayedexpansion
set .sy_=sys
set .dl_=dll
set .vx_=vxd
set .bi_=bin
set .ex_=exe
set .dr_=drv
set .co_=com
for %%a in (*.??_) do (
set ext=%%~xa
set name=%%a
set base=%%~na
call :aa
goto :eof
expand %name% %base%.!%ext%!

Report •
Related Solutions

Ask Question