Experts please help me

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
renzlo
Posts: 116
Joined: 03 May 2011 19:06

Experts please help me

#1 Post by renzlo » 09 Sep 2011 14:47

I have created a batch program that will detect a certain file and write a log report. I have set it up as a listening program using "if exist" and "timeout" commands. It is 98% complete, but I'm stucked with this problem, I tried everything I know and still I can't figure it out. Here's what I wanted to do:

I want my batch file to write a log report every 15 minutes, please be noted that I can't use "at" commands and "schtasks" because of some limitations on my account and also I have used the command "timeout" so I can't use it. Is there a way?

I've tried using for command but still it doesn't work.

Thanks in advance.

Ocalabob
Posts: 79
Joined: 24 Dec 2010 12:16
Location: Micanopy Florida

Re: Experts please help me

#2 Post by Ocalabob » 09 Sep 2011 16:49

Greetings renzio!

I am not an expert but if I understand your question correctly and
if WMIC and/or PING are options then maybe one of the follow
examples would be useful to you.

Code: Select all

:Delay
echo Delay Processing for about 15 minutes
echo Start Delay at %time%>>logfile.txt
WMIC timezone list /every:900 /repeat:2 >nul
echo End   Pause at %time%>>logfile.txt


You can replace the WMIC line with: PING -n 900 127.0.0.1>nul

Best wishes renzio

renzlo
Posts: 116
Joined: 03 May 2011 19:06

Re: Experts please help me

#3 Post by renzlo » 09 Sep 2011 20:01

thanks ocalabob, ill try that.

nitt
Posts: 218
Joined: 22 Apr 2011 02:43

Re: Experts please help me

#4 Post by nitt » 09 Sep 2011 20:34

Ocalabob wrote:Greetings renzio!

I am not an expert but if I understand your question correctly and
if WMIC and/or PING are options then maybe one of the follow
examples would be useful to you.

Code: Select all

:Delay
echo Delay Processing for about 15 minutes
echo Start Delay at %time%>>logfile.txt
WMIC timezone list /every:900 /repeat:2 >nul
echo End   Pause at %time%>>logfile.txt


You can replace the WMIC line with: PING -n 900 0>nul

Best wishes renzio


fixed

Post Reply