Extract Path from shortcut link - windows batch

后端 未结 2 1062
悲&欢浪女
悲&欢浪女 2021-01-20 17:52

How can I extract the path from a shortcut link in windows batch file without using vbscript?

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-20 18:42

    You can try with shortcutjs.bat

    call shortcutjs.bat "some.lnk"^| find /i "target:"
    

    Like vbscript this also uses windows script host , but with the other built-in language - jscript , but wrapped in a .bat file. Extracting the target will be not possible with pure batch.

提交回复
热议问题