I have the following line in a BAT file, it does not work, how can I make it work? The shortcut is in the same directory as the BAT file, I have to move it to the desktop.
MOVE "MyShortCut.Ink" C:\
shortcuts have the extension .LNK ("LINK"). You have an INK , as in "my pen broke and spilled ink on top of my shirt."
.LNK
INK
On Windows, C:\ not a desktop. C:\Users\[Username]\Desktop usually what you are looking for.
C:\
C:\Users\[Username]\Desktop
There is an environment variable for C:\Users\[Username] for the current user, which is in the %USERPROFILE% state.
C:\Users\[Username]
%USERPROFILE%
If you started it from another directory, first switch to bat files that start the path;
CD %~dp0 MOVE "MyShortCut.Lnk" "%USERPROFILE%\Desktop"
Source: https://habr.com/ru/post/1391879/More articles:Make program automatically add text fields to java - javaMatlab search route for all Linux users - linuxInheritance in C: good, bad, or else? - cHTML5Boilerplate with Yii Framework - html5C # and SerialPort class truncation data - c #display pdf crystal in ASP web application using Chrome - google-chromeNInject equivalent of Autofac AsClosedTypesOf - c #Date stored in local time zone - Hibernate JPA - dateMagento CMS error: front controller reached 100 iterations on the router side - magentoGet all selected checkboxes in Java - javaAll Articles