cd Документы.lnk gives the error "The folder name is incorrectly set", and
Документы.lnk opens a folder in explorer.exe. I just need to go on the shortcut in the terminal, how to do it?
I do NOT wildly understand why it may even be necessary.
But the solution exists:
Here is the code for the batch file, to go to the directory, from the parsed lnk file (the path to which comes in the form of a parameter):
@echo off echo set WshShell = WScript.CreateObject("WScript.Shell")>Tmp.vbs echo set Lnk = WshShell.Createshortcut(WScript.Arguments(0))>>Tmp.vbs echo WScript.Echo Lnk.TargetPath>>Tmp.vbs for /f "delims=" %%d in ('cscript //nologo Tmp.vbs "%~1"') do del Tmp.vbs & cd /d "%%d" Source: https://ru.stackoverflow.com/questions/886698/
All Articles
mklink /D документы "C:\документы"- teranlnklabel is a binary file, you can read the description of the structure here -> msdn.microsoft.com/en-us/library/dd871305.aspx - teranдокументы.lnk, if you want :) - teran