w10install/scripts/install-shortcuts.cmd
Michael H.G. Schmidt 42dc7b307b bugfixing
2023-01-19 22:54:18 +01:00

23 lines
579 B
Batchfile

@echo off
set DESKTOP="%PUBLIC%\Desktop"
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
echo ####### %0 #######
echo copying desktop shortcuts ...
xcopy /CDI /HERBY desktop %DESKTOP%
echo setting access rights for desktop shortcuts ...
icacls %DESKTOP%\* /grant Users:R 1>nul 2>nul
echo copying startmenu shortcuts ...
mkdir %STARTMENU%\Tools 2>nul
xcopy /CDI /HERBY startmenu %STARTMENU%\Tools
echo setting access rights for startmenu shortcuts ...
icacls %STARTMENU%\Tools\* /grant Users:R 1>nul 2>nul
echo ####### %0 #######