So what my batch file does currently is it asks for name of new path and what the old one was and then it copies the old files contents and puts them in the new one.
What i want to do after this is change the path of all files that end with .lnk and change theyr START IN and TARGET from old to new.
I think what would be possible is also to just make the target of new link to the .exe file with same name.
@Echo Off
Set /P "oldname= Old name: "
Set /P "newname= New name: "
md "%newname%"
XCopy "%oldname%" "%newname%" /E /I
FOR /f "usebackq delims=|" %%f IN (`dir /b "%newname%\*Shortcut*"`) DO (
SET shortcut=%%f
mklink /d %shortcut% %shortcut: .lnk=%
)
pause