PE裡是如何實現程序運行的呢?以掛載wim是其中的一種方法
@echo off
COLOR
for %%a in (y x w v u t s r q p o n m l k j i h g f e d c) do (
if exist %%a:\minipe\opera
if not exist %%a:\minipe\opera
fsutil fsinfo drivetype %%a:|findstr /i "CD">nul&&(
call :one
exit)||(
call :two
exit)
)
)
)
:one
echo
echo
echo
echo
echo
echo
echo
echo
set /p TP=請輸入運行分區
echo
echo
Set TP=%TP:~
xcopy Y:\opera /e %TP%:\peopera\ /y /h /r>nul
attrib
pushd %TP%:\peopera
start operausb
)
goto :eof
:two
start operausb
goto :eof
說明
From:http://tw.wingwit.com/Article/Common/201311/5623.html