mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 00:50:46 +08:00
Server 2012 Start Menu often hides PowerShell .lnk entries; .cmd targets are visible. Co-authored-by: Cursor <cursoragent@cursor.com>
7 lines
279 B
Batchfile
7 lines
279 B
Batchfile
@echo off
|
|
setlocal
|
|
set "ROOT=%~dp0"
|
|
if "%ROOT:~-1%"=="\" set "ROOT=%ROOT:~0,-1%"
|
|
cd /d "%ROOT%"
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%ROOT%\packaging\launch_shortcut.ps1" -Action setup -ProgramRoot "%ROOT%" -DataRoot "%ProgramData%\NetX"
|
|
exit /b %ERRORLEVEL%
|