例如我想开机后自动运行C:\test.exe
不知怎改.
PECMD.INI里:
forx /s %ProgramFiles%\orderdrv.cmd,tools,0,exec =!%tools%
forx %ProgramFiles%\*.bat,tools,0,exec !%tools%
shel explorer.exe
exec !winpeshl.exe
DISP W1600 H1200 B32 F60
Kill Explorer.exe
---
Program Files\配置.bat, 我加了ACDSee. 但不知怎加开机后自动运行C:\test.exe
@echo off
call :link "ACDSee.exe,%Programs%\ACDSee"
call :link "***.exe,%Programs%\***"
call :link "Notepad2.exe,%Programs%\Notepad"
call :link "WinRAR.exe,%Programs%\WinRAR"
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\*64*.7z" "%%a:\Sources\*64*.iso") do (
if "%%~xb"==".7z" (
for /r "%~dp0" %%i in (7z.exe) do (
if exist "%%~i" (
"%%~i" x "%%~b" -y -o"%~dp0"
)
)
) else if "%%~xb"==".iso" (
PECMD.EXE LINK "%Desktop%\%%~nb","%%~b"
)
)
)
for %%a in ("%~dp0*.ini") do (
PECMD.EXE LOAD "%%~a"
)
for %%a in ("%~dp0*.cmd" "%~dp0*.bat") do (
if not "%~0"=="%%~a" (
PECMD.EXE EXEC !"%%~a"
)
)
exit
:link
for %%a in (%*) do (
for /f "tokens=1,* delims=, " %%b in ("%%~a") do (
for /r "%~dp0" %%i in (%%b) do (
if exist "%%~i" (
if not "%%~c"=="" (
PECMD.EXE LINK "%%~c","%%~i"
) else (
PECMD.EXE PINT "%%~i",TaskBand
)
)
)
)
)
goto :eof
谢谢.