@Echo Off
Title LKSC - LiberKey Shortcuts Creator
Set LKROOT=D:\LiberKey\Apps
Set LKSHORTCUTS="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\LiberKey Shortcuts"
Cls
Echo -------------------------------------------------------------------------------
Echo LIBERKEY SHORTCUTS CREATOR
Echo -------------------------------------------------------------------------------
Echo LiberKey Apps folder must be located here: %LKROOT%
Echo.
Echo Press any key to create all the shortcuts under this main folder:
Echo %LKSHORTCUTS%
Echo.
Echo Otherwise, close this window.
Echo -------------------------------------------------------------------------------
Pause >NUL
MkDir %LKSHORTCUTS%
For /R "%LKROOT%" %%G In (*LKL.exe) Do (
shortcut.exe /F:%LKSHORTCUTS%\"%%~nG".lnk /A:C /T:%%G >NUL
If Exist %LKSHORTCUTS%\"%%~nG".lnk (Echo SHORTCUT CREATED: %%~nG) Else (Echo --^> ERROR CREATING: %%~nG)
)
Pause
@Echo Off
Title LKSC - LiberKey Shortcuts Creator
Set LKROOT=D:\LiberKey\Apps
Set LKSHORTCUTS=%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\LiberKey Shortcuts
Cls
Echo -------------------------------------------------------------------------------
Echo LIBERKEY SHORTCUTS CREATOR
Echo -------------------------------------------------------------------------------
Echo LiberKey Apps folder must be located here: %LKROOT%
Echo.
Echo Press any key to create all the shortcuts under this main folder:
Echo %LKSHORTCUTS%
Echo.
Echo Otherwise, close this window.
Echo -------------------------------------------------------------------------------
Pause >NUL
MkDir "%LKSHORTCUTS%"
For /R "%LKROOT%" %%G In (*LKL.exe) Do (
shortcut.exe /F:"%LKSHORTCUTS%\%%~nG.lnk" /A:C /T:%%G >NUL
If Exist "%LKSHORTCUTS%\%%~nG.lnk" (Echo SHORTCUT CREATED: %%~nG) Else (Echo --^> ERROR CREATING: %%~nG)
)
Pause