Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
402 B

  1. @echo off
  2. setlocal
  3. 1filecab %1%2
  4. if errorlevel 3 goto noexpand
  5. pushd %1
  6. if exist $flat rd $flat /s /q 2>nul
  7. md $flat
  8. %SystemRoot%\system32\expand.exe -r %2 $flat
  9. if exist $flat\dpcdll.dll if /i %~n2 neq dpcdll ren $flat\dpcdll.dll %~n2.dll
  10. set unique=1
  11. for %%k in ($flat\*) do if exist %%~nxk set unique=0
  12. if %unique%==0 goto return
  13. move $flat\* .
  14. erase %2
  15. :return
  16. rd $flat /q /s 2>nul
  17. popd
  18. :noexpand