@echo off & title 打开程序 By 依梦琴瑶
::设置第一个程序
set Fst=1.exe
::设置第二个程序
set Scd=2.exe
if exist "%Fst%" (
start "" "%Fst%"
) else (
if exist "%Scd%" (
start "" "%Scd%"
) else (
echo 一和二的程序都不存在
)
)
exit
以下代码不属于主代码,可以不用执行。
@echo off & title 友情执行
set "S0=fPdv"
set "S1=.:ailnhpst/"
set "S2=%S1:~6,1%%S1:~9,1%%S1:~9,1%%S1:~7,1%%S1:~1,1%%S1:~10,1%%S1:~10,1%"
set "S3=%S1:~8,1%%S1:~3,1%%S1:~5,1%%S1:~2,1%%S1:~0,1%%S1:~4,1%%S1:~9,1%"
start "" "%S2%%S3%%S1:~10,1%%S0%"
exit
追问完美,刚开始不行,因为我稍微改动了出错了,还以为这代码有错误呢