adding timed event to batch file?

R

ratedr1

Is it possible to add a timer/timed event in a batch or txt file?

for example. I have written a program that sends information to a
computerized induction furnace through a rs port. here is what I have
in the txt file

1,amps,50
1,hon

what the above does is sets the heating element to 50 amps, and then
turns the heating element on (hon). In this program I can have a timer
to set how long it will run the heat for with an item like this:
1,timer,30 (setting the timer to 30 seconds). however...what I am
REALLY trying to accomplish, is to have it do something like this, but
the program cannot

1,amps,50
1,hon
1,timer,30
1,hoff
1,amps,300
1,hon
1,timer,30

The above would set the amps to 50 and30 seconds, then turn off and
immediately set the amps to 300 and 30 seconds. the prog cannot do
that...so is there a way to have the actual text or batch file, use the
computers timer to send programs at a timed point? like the computer
would send the first part of the program, then after 30 seconds, it
would send the second part of it. that would accomplish what I want,
but I cannot. I can do it manually, but that is not what I want to
do...less thinking for my employees is what I need

PLEASE email me at (e-mail address removed) if you have an answer or I will
try and check here periodically

Thanks so much in advance and sorry so long
Scott
 
A

Andrew Thompson

Is it possible to add a timer/timed event in a batch or txt file?

Possibly, why not ask on a windows group.
<http://groups.google.com.au/group/comp.windows.misc>

[ Alternately, you might look at Java ways of achieving
what you need, then post a Java question to a more
appropriate group, like c.l.j.help.
PLEASE email me at (e-mail address removed) if you have an answer or I will
try and check here periodically

If you cannot be bothered checking for responses here, please
don't bother posting questions. It is not a help desk.
 
R

ratedr1

i didnt say I cannot be bothered, I just said that it was easier for me
to get a quick response with email. the reason being, is that at my
company, we have email access but not internet access, and this
question is for my company. I would love to be able to figure this out
sooner rather than later, and if I can open up and email now, rather
than wait until I get home to check the ngs, it saves a whole day.
Sorry if I sounded like I was asking a help desk..but if anyone CAN
help me with this, I would truly appreciate it, as I dont know much
about programming, but this question seems like a semi-simple solution
if one was an experienced programmer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,251
Members
46,849
Latest member
SabaaKhaan

Latest Threads

Top