Would go on screen. Is that where you wanted that text?
I take it you already resolved any path issue.
bob
Hi,
Can anyone see anything wrong with the batch file below?
@echo on
If [%ERRORLEVEL%] == [0] (
echo X86
cd %systemroot%\system32
If exist "CleanupCompleted.txt" exit
call :CLEANUP
call :FILEMOVE1
) ELSE (
echo AMD64
cd %systemroot%\sysnative
If exist "CleanupCompleted.txt" exit
call :CLEANUP
call :FILEMOVE2
)
:CLEANUP
REM Get the Altiris Agent install path
FOR /F "tokens=2*" %%A IN ('REG.EXE QUERY "HKLM\Software\Altiris\Altiris Agent" /V "installdir"') DO SET AgentDir=%%B
set tempbat="%temp%\AgentClean.bat"
REM Create temporary batch file to execute while the agent restarts
(
echo "%AgentDir%\aexagentutil" /stop
echo rmdir "%AgentDir%\TaskManagement\cache" /s /q
echo rmdir "%AgentDir%\TaskManagement\status" /s /q
echo rmdir "%AgentDir%\TaskManagement\statusXml" /s /q
REM echo rmdir "%AgentDir%\TaskManagement\lti" /s /q
echo ping localhost -n 30
echo "%AgentDir%\aexagentutil" /start
echo exit /b
) > %tempbat%
REM Executes temporary batch file
Call %tempbat%
Set RegVar=HKLM\Hardware\Description\System\CentralProcessor\0
REG.exe Query %RegVar% 2>NUL | find /I /N "x86">NUL
exit /b
:FILEMOVE1
COPY /Y "%~dp0\CleanupCompleted.txt" "%systemroot%\system32\CleanupCompleted.txt"
exit /b
:FILEMOVE2
%systemroot%\sysnative\cmd.exe /c copy /y "%~dp0\CleanupCompleted.txt" "%systemroot%\system32\CleanupCompleted.txt"
exit /b

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic