Add mod: userSetup - replace favorites with user shortcut
This commit is contained in:
parent
04e12dc8b4
commit
9f003826b2
@ -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"
|
Loading…
Reference in New Issue
Block a user