* Don't load PowerShell profiles (-NoProfile) * This should reduce the startup time for most actions in WinPE * MCT Windows 10 isos no longer have "Technical Preview" in the names * make.cmd script simplified and now removes more language folders
31 lines
450 B
Batchfile
31 lines
450 B
Batchfile
@echo off
|
|
|
|
:Init
|
|
setlocal EnableDelayedExpansion
|
|
title Menu Launcher
|
|
color 0b
|
|
pushd %~dp0
|
|
|
|
:Flags
|
|
for %%f in (%*) do (
|
|
if /i "%%f" == "/DEBUG" (@echo on)
|
|
)
|
|
|
|
:LaunchMenu
|
|
"%SystemDrive%\WK\ConEmu\ConEmu.exe" /cmd PowerShell -ExecutionPolicy Bypass "%SystemDrive%\WK\Scripts\WK.ps1" -NoProfile -new_console:n
|
|
goto Done
|
|
|
|
:Abort
|
|
echo.
|
|
echo Aborted.
|
|
goto Exit
|
|
|
|
:Done
|
|
echo.
|
|
echo Done.
|
|
goto Exit
|
|
|
|
:Exit
|
|
echo.
|
|
popd
|
|
endlocal
|