Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windows shortcut with relative path to the icon

Is there a way to set relative path to the icon in win shortcut? for the target location it works fine:

%windir%\system32\cmd.exe /c "cd %CD% && start fileToExecute.bat"

I read that win shortcuts can pick up icon from .exe files automatically but what to do if my target file is a batch file?

like image 312
31415926 Avatar asked Feb 04 '13 21:02

31415926


1 Answers

It's not entirely clear what you're asking, since your title says one thing but your question says another.

if the question is whether it is possible to set a relative path for the icon location in a LNK file, then the answer is no. The icon file format has two ways of specifying the icon location, either as an absolute path or as a path with environment variables expanded. There is no option for a relative path.

like image 85
Raymond Chen Avatar answered Sep 18 '22 23:09

Raymond Chen