added logging to logon.cmd

This commit is contained in:
Michael H.G. Schmidt 2023-12-27 11:21:42 +01:00
parent 37a2b18ef0
commit 0cd24b5a02
2 changed files with 7 additions and 0 deletions

View File

@ -8,6 +8,7 @@ set LOG=%SCRIPTS%\autoconfig.txt
set SCRIPT_SETTINGS=%TOOLS%\scripts\settings.cmd
set COMPANY_SETTINGS=%TOOLS%\company\settings.cmd
rem start logging ...
del /F /Q %LOG% 1>nul 2>nul
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
shift /1

View File

@ -14,6 +14,7 @@ set EMSETTINGS_DONE="%LOCALAPPDATA%"\.emsettings_done
set EMCLIENT_CONFIG=%TOOLS%\scripts\config\emclient-defaults.xml
set STARTMENU=%APPDATA%\Microsoft\Windows\Start Menu\Programs
set STARTMENU_PUBLIC=%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs
set LOG="%LOCALAPPDATA%"\logon.txt
rem ===================
rem DEFAULTS
@ -34,6 +35,11 @@ set ms_tcpip6=0
set ms_implat=0
set ms_server=0
rem start logging ...
del /F /Q %LOG% 1>nul 2>nul
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
shift /1
echo ####### %0 #######
rem ===================