Am 07.12.2013 14:43, schrieb Gilles Lapene: > Sorry but which file has launch by wpkg > At the end, when all packages has installed. > Thanks. Am 04.12.2013 22:50, schrieb Stefan Pendl: > I am using the following in a batch file, but if you are lucky and > have only XP clients, you can do this by the pre and port scripts too > in the WPKG client. > > '---code start (watch for line wraps) > > echo. > call "%WPKG_ROOT%\tools\WPKGclearLog.bat" > echo. > cscript.exe -Nologo "%WPKG_ROOT%\wpkg.js" /synchronize /nonotify > /quiet /sendStatus /logLevel:0xFF > echo. > call "%WPKG_ROOT%\tools\WPKGclientCollect.bat" > echo. > > '---code end > > > WPKGclearLog.bat > > '---code start (watch for line wraps) > > for /f "tokens=*" %%V in ('ver') do set os_ver=%%V > > echo %DATE% %TIME% ERROR : %os_ver% - WPKG did not finish sucessfully! > >"%SOFTWARE%\WPKG\ClientLogs\%COMPUTERNAME%.log" > > '---code end > > > WPKGclientCollect.bat > > '---code start (watch for line wraps) > > set script_name=%~n0 > > echo %DATE% %TIME% INFO : WPKG successfully finished! > >"%SOFTWARE%\WPKG\ClientLogs\%COMPUTERNAME%.log" > > echo SOFTWARE .... %SOFTWARE% >"%TMP%\%script_name%.log" > echo WPKG_ROOT ... %WPKG_ROOT% >>"%TMP%\%script_name%.log" > > if exist "%TMP%\wpkg-%COMPUTERNAME%.log" copy /Y > "%TMP%\wpkg-%COMPUTERNAME%.log" > "%SOFTWARE%\WPKG\ClientLogs\%COMPUTERNAME%.log" > >>"%TMP%\%script_name%.log" > if exist "%SystemRoot%\system32\wpkg.xml" copy /Y > "%SystemRoot%\system32\wpkg.xml" > "%SOFTWARE%\WPKG\ClientStatus\%COMPUTERNAME%.xml" > >>"%TMP%\%script_name%.log" > > '---code end > I thought the above sequence is clear according to the first code block? WPKGclearLog.bat => wpkg.js => WPKGclientCollect.bat -- Stefan P. Top-posting: A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? |