你的文件可以移动,但是相对位置不能改变,这样才可以创建基于相对路径的快捷方式.
具体如下: (以everything.exe为例)
如下图所示操作,写上 explorer.exe Everything-1.2.1.371\everything.exe
其中,
explorer.exe 是资源管理器
Everything-1.2.1.371\everything.exe 是指要打开的Everything-1.2.1.371文件夹中的 everything.exe 主程序
两者之间有空格; 并且这个反斜杆 \ 是要注意的地方,可能写成 / 就不行了。
最后把快捷方式的"起始位置"清空.
当然如果你不想使用explorer,也可以使用cmd来打开.
%windir%\system32\cmd.exe /c start relatepath\yourapp.exe