12-04-2009 06:34 AM
Solved! Go to Solution.
12-04-2009 06:44 AM
@echo off setlocal set dtlogfile=%CD%\dtrace.log del %dtlogfile% /q set dtcmds=dtracecmd.ini echo set DirectoryService v >> %dtcmds% echo log %dtlogfile% >> %dtcmds% echo comment EV Support canned archive task failure script >> %dtcmds% rem log the dtrace output for 20 minutes echo pause 20 >> %dtcmds% for /F "tokens=3*" %%i in ('REG QUERY "HKLM\SOFTWARE\KVS\Enterprise Vault\Install" /v InstallPath ^| find "REG_SZ"') DO SET EVINSTALLPATH=%%i %%j path %path%;%EVINSTALLPATH% dtrace.exe < %dtcmds% if exist %dtlogfile% ( echo log file ^(%dtlogfile%^) ) else ( echo Log file ^(%dtlogfile%^) not found. echo +++ more %dtcmds% echo +++ path echo +++ ) :end rem tidy up del %dtcmds% /q endlocal
12-04-2009 06:44 AM
@echo off setlocal set dtlogfile=%CD%\dtrace.log del %dtlogfile% /q set dtcmds=dtracecmd.ini echo set DirectoryService v >> %dtcmds% echo log %dtlogfile% >> %dtcmds% echo comment EV Support canned archive task failure script >> %dtcmds% rem log the dtrace output for 20 minutes echo pause 20 >> %dtcmds% for /F "tokens=3*" %%i in ('REG QUERY "HKLM\SOFTWARE\KVS\Enterprise Vault\Install" /v InstallPath ^| find "REG_SZ"') DO SET EVINSTALLPATH=%%i %%j path %path%;%EVINSTALLPATH% dtrace.exe < %dtcmds% if exist %dtlogfile% ( echo log file ^(%dtlogfile%^) ) else ( echo Log file ^(%dtlogfile%^) not found. echo +++ more %dtcmds% echo +++ path echo +++ ) :end rem tidy up del %dtcmds% /q endlocal
12-04-2009 07:09 AM
12-04-2009 07:38 AM
12-04-2009 08:10 AM
12-04-2009 08:20 AM
12-04-2009 09:18 AM
echo set DirectoryService v >> %dtcmds%just chnage the v wit whatevr you want to use say m for medium for example