w10install/scripts/mkinstall-links.cmd

28 lines
516 B
Batchfile
Raw Permalink Normal View History

2023-02-16 14:32:10 +01:00
@echo off
set TOOLS=%SystemDrive%\tools
set STARTMENU=%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs
echo ####### %0 #######
IF NOT EXIST ..\optional\users (
echo ..\optional\users NOT found!
goto END
) else (
echo creating install links in users start menu ...
mkdir "%STARTMENU%\INSTALL"
cd ..\optional\users
FOR %%L in (*.cmd) do (
echo processing ... [ %%L ]
mklink "%STARTMENU%\INSTALL\%%L" %TOOLS%\optional\users\%%L 2>nul
)
2023-02-16 16:30:10 +01:00
cd ..\..\scripts
2023-02-16 14:32:10 +01:00
)
:END
echo ####### %0 #######