|
@echo off
set st="firefox.exe,%Desktop%\firefox"
call :link
set st="PotPlayer.exe,%Desktop%\PotPlayer"
call :link
set st="DiskGenius.exe,%Desktop%\DiskGenius"
call :link
set st="UltraISO.exe,%Desktop%\UltraISO"
call :link
set st="WinNTSetup.exe,%Desktop%\WinNTSetup"
call :link
set st=%st% "firefox.exe,%Programs%\firefox"
set st=%st% "PotPlayer.exe,%Programs%\PotPlayer"
set st=%st% "Imagine.exe,%Programs%\Imagine"
set st=%st% "DiskGenius.exe,%Programs%\DiskGenius"
set st=%st% "UltraISO.exe,%Programs%\UltraISO"
set st=%st% "WinNTSetup.exe,%Programs%\WinNTSetup"
set st=%st% "7zFM.exe,%Programs%\7-Zip"
set st=%st% "Notepad2.exe,%Programs%\Notepad2"
set st=%st% "PENetwork.exe,%Programs%\PENetwork"
call :link
for %%a in ("Administrative Tools" StartUp) do (
if exist "%Programs%\%%~a" rd /s /q "%Programs%\%%~a"
)
call :export %0
exit
:link
for %%a in (%st%) do (
for /f "tokens=1,* delims=," %%b in (%%a) do (
for /r "%ProgramFiles%" %%i in (%%~b) do (
if not "%%~c"=="" (
if exist "%%~i" PECMD.EXE LINK "%%~c","%%~i"
) else (
if exist "%%~i" PECMD.EXE PINT "%%~i",TaskBand
)
)
)
)
goto :eof
:export
for %%a in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
for %%b in ("%%a:\Sources\软件*.wim" "%%a:\Sources\软件*.7z" "%%a:\Sources\*86*.iso") do (
if "%%~xb"==".wim" (
dism.exe /apply-image /imagefile:"%%~b" /index:1 /applydir:"%ProgramFiles%"
) else if "%%~xb"==".7z" (
for /r "%ProgramFiles%" %%i in (7z.exe) do (
if exist "%%~i" (
"%%~i" x "%%~b" -y -o"%ProgramFiles%"
)
)
) else if "%%~xb"==".iso" (
PECMD.EXE LINK "%Desktop%\%%~nb","%%~b"
)
)
)
for %%a in ("%ProgramFiles%\*.ini") do (
PECMD.EXE LOAD "%%~a"
)
for /r "%ProgramFiles%" %%a in (*.cmd *.bat) do (
if not "%~1"=="%%~a" (
PECMD.EXE EXEC !"%%~a"
)
)
goto :eof
|
|