Scripting Dumplog paramenters

Unanswered Question
Apr 26th, 2007

Has anyone been successful in scripting the paramenters in to the dumplog util?

What I am trying to accomplish is I run a batch file and at the beggining of the batch file I ask the user to enter the beggining time and ending time of the logs they want to pull then pass that to the dumplog util.

Here is what I do now but I want to stream line this:

:start

c:

cd\

cls

set /p time=Did u remember to set time in bat file? Enter y or n:

if "%time%"=="y" goto editfile

if "%time%"=="n" goto pulllogs

:pulllogs

cd\icm\icm1\cg1A\logfiles

rem cdlog icm1 cg1a

dumplog ctisvr /bt 15:38 /et 15:41 >Cg1a_CTISVR.txt

@echo .

@echo .

@echo ***ARE THERE ERRORS? Y / N ***

@echo .

@echo .

Pause

move *.txt c:\hopewell

@echo .

@echo .

@echo .

@echo ALL LOG FILES WERE MOVED TO C:\HOPEWELL

@echo .

@echo .

@echo .

goto end

:editfile

cls

c:

c:\hopewell

edit dumpcg.bat

goto start

:end

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.

Actions

This Discussion