ADSM-L

Re: Calling all windows scripters - help!

2004-10-06 06:57:21
Subject: Re: Calling all windows scripters - help!
From: Steve Schaub <Steve.Schaub AT HAWORTH DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Wed, 6 Oct 2004 06:59:49 -0400
Neil,

I get the following error when I try running the command:
 
D:\test>poke2.cmd
a.TXT was unexpected at this time.

D:\test>FOR /L a.TXT & TIME /T >> DUMMYa.TXT
D:\test>


D:\test>more poke2.cmd
FOR /L %a IN (1,1,100) DO DATE /T >> DUMMY%a.TXT & TIME /T >>
DUMMY%a.TXT

-----Original Message-----
From: Neil Schofield [mailto:neil.schofield AT YORKSHIREWATER.CO DOT UK] 
Sent: Tuesday, October 05, 2004 8:31 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: Calling all windows scripters - help!


Steve

I don't know if you can build on this, but the following command will
create the files DUMMY1.TXT to DUMMY100.TXT in the current directory (or
append to them if they already exist) and add the date and time as two
lines to the end.

FOR /L %a IN (1,1,100) DO DATE /T >> DUMMY%a.TXT & TIME /T >>
DUMMY%a.TXT

Regards
Neil




Take a tour of a virtual waste water treatment works at
http://www.wastewatertour.com The information in this e-mail is
confidential and may also be legally privileged. The contents are
intended for recipient only and are subject to the legal notice
available at http://www.keldagroup.com/email.htm
Yorkshire Water Services Limited
Registered Office Western House Halifax Road Bradford BD6 2SZ Registered
in England and Wales No 2366682

<Prev in Thread] Current Thread [Next in Thread>