Add mod: userSetup - replace favorites with user shortcut

This commit is contained in:
Fierelier 2021-08-14 18:53:45 +02:00
parent 04e12dc8b4
commit 9f003826b2

View File

@ -0,0 +1,10 @@
@echo off
del /f /q "%userprofile%\Links\*.lnk"
set rnd=%random%
echo Set oWS = WScript.CreateObject("WScript.Shell") > "%tmp%\%rnd%.vbs"
echo Set oLink = oWS.CreateShortcut("%userprofile%\Links\%username%.lnk") >> "%tmp%\%rnd%.vbs"
echo oLink.TargetPath = "%userprofile%" >> "%tmp%\%rnd%.vbs"
echo oLink.IconLocation = "%systemroot%\System32\imageres.dll, 117" >> "%tmp%\%rnd%.vbs"
echo oLink.save >> "%tmp%\%rnd%.vbs"
cscript "%tmp%\%rnd%.vbs"
del /f /q "%tmp%\%rnd%.vbs"