@echo off
echo set args = WScript.Arguments>123.vbs
echo linkname = args(0)>>123.vbs
echo set wshshell = CreateObject("WScript.Shell")>>123.vbs
echo set scut = wshshell.CreateShortcut(linkname)>>123.vbs
echo set fs = CreateObject("Scripting.FileSystemObject")>>123.vbs
echo folder = """" ^& fs.GetParentFolderName(scut.TargetPath) ^& """" >>123.vbs
echo wshshell.Run(folder) >>123.vbs
如上,加上标符号吧,&这个符号在批处理里有特殊作用要变成普通再输出
我没学过专业批处理表达不怎么样,以后无法输出的符号都要加上标符号^这样的小箭头