Windows shortcut with relative icon path

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

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

I read that winnings shortcuts can automatically extract an icon from .exe files, but what if my target file is a batch file?

+5
source share
2 answers

It’s not entirely clear what you are asking, as your headline says one thing, but your question says another.

, LNK, . , , . .

+10

: , , StackOverflow, , ...

  • .bat .
  • .
  • "".
  • " ..."
  • , , bat . .
  • .
0

All Articles