- @echo off
- for %%a in ("D:\Alist\alist.vbs" "D:\Alist\rclone\rclone.vbs") do (
- call :CreateShort "%%~a" "%AppData%\Microsoft\Windows\Start Menu\Programs\Startup\%%~na"
- )
- goto :eof
-
- rem "http://www.bathome.net/redirect.php?goto=findpost&ptid=11050&pid=70331"
- :CreateShort
- mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(""%~2.lnk""):b.TargetPath=""%~1"":b.WorkingDirectory=""%~dp1"":b.Save:close")
复制代码
|