w10install/scripts/install-shortcuts.cmd

24 lines
614 B
Batchfile
Raw Permalink Normal View History

2021-03-09 23:15:35 +01:00
@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%
2023-01-19 22:54:18 +01:00
echo setting access rights for desktop shortcuts ...
icacls %DESKTOP%\* /grant Users:R 1>nul 2>nul
2021-03-09 23:15:35 +01:00
echo copying startmenu shortcuts ...
2023-01-15 17:52:06 +01:00
mkdir %STARTMENU%\Tools 2>nul
2023-02-24 12:22:13 +01:00
del /F /Q %STARTMENU%\Tools 2>nul
2023-01-15 17:52:06 +01:00
xcopy /CDI /HERBY startmenu %STARTMENU%\Tools
2021-03-09 23:15:35 +01:00
2023-01-19 22:54:18 +01:00
echo setting access rights for startmenu shortcuts ...
icacls %STARTMENU%\Tools\* /grant Users:R 1>nul 2>nul
2021-03-09 23:15:35 +01:00
echo ####### %0 #######