不管bio.exe处于硬盘上什么位置只要有就创建一个快捷方式
@echo off
for %%a in (C:,D:,E:,F:,G:,H:,I:,J:,K:,L:,M:,N:,O:,P:,Q:) do call :slz "%%a"
del tmp.vbs
echo 任务已完成&pause
:slz
if "%~1"=="" goto:eof
if not exist %~1\nul goto:eof
cls&echo 正在%~1盘搜索文件...
for /f "delims=" %%i in ('dir /s/b/a-d "%~1\bio.exe" 2^>nul') do (
set "ni=%%~ni"
if defined ni (
>tmp.vbs echo On Error Resume Next
>>tmp.vbs echo With CreateObject^("WScript.Shell"^).CreateShortcut^(CreateObject^("WScript.Shell"^).SpecialFolders^("Desktop"^)^&"\%%~ni"^&".lnk"^)
>>tmp.vbs echo .TargetPath = "%%~i"
>>tmp.vbs echo .WindowStyle = 1
>>tmp.vbs echo .WorkingDirectory = "%%~dpi"
>>tmp.vbs echo .Save
>>tmp.vbs echo End With
))
tmp.vbs
goto:eof
可以直接call命令打开呀