创建相对路径的快捷方式

方法一

调用explorer.exe的方法实现:

%SystemRoot%\explorer.exe "一个绝对路径或相对路径"
如:
%SystemRoot%\explorer.exe "..\TEST\TEST\TEST.txt"

 

方法二

首先建立一个快捷方式

打开改快捷方式的属性

设置“目标”为:%windir%\system32\cmd.exe /c start your_relpath\app.exe [your_args]

posted @ 2016-11-30 16:13  徐淳  阅读(985)  评论(0编辑  收藏  举报