Nibble Guru - Computing queries demystified Tuesday, December 02, 2008
Home
My Account / Register
Login / Logout
Post your Problem!
Search

About Us
Contact Us



List Home > Operating System > Windows NT/2000/XP/2003 >   [ Post New Problem ]

Welcome back !
TrackingID : 608
Posted : Sunday, April 11th, 2004 02:32:08 AM
By : pehpeh
batch file script (for command)Configuration:
Hi, is there anybody who knows how to write
a batch file script for iterating a execution
file over and over again ?
I wrote my program in C. And my calculation should be done, say 1000 times.
Every time the execution is done, the result
data file name should be changed and they should be moved to another directory, and then the calculation and the same procedure
should be done again and again.
I guess I can probably use "for" command for this iterations. But I do not know the syntax how I can write down.
I would appreciate it if anybody can help me
on this matter.
Thank you.
best.

Operating System : Windows 2000
CPU/Processor : don't know
RAM : don't know

Related Problems :
Comments :
Re: batch file script (for command) by steved on April 11th, 2004 05:41:27 AM
Yes the For command should be able to do this - have you looked in the win2k Help, its got a bit on For command - or For /? at a command prompt.
Re: batch file script (for command) by on April 11th, 2004 08:17:14 AM
Thank you Steve. I found "for" syntax related to "interation" from a win2k help site.
===========================================
Iterative
for /L [%% | %]variable in (start,step,end) do command [command-parameters]
The set is a sequence of numbers from start to end, by step amount. So (1,1,5) would generate the sequence 1 2 3 4 5 and (5,-1,1) would generate the sequence (5 4 3 2 1).
===========================================
I guess this should work for my situation.
Thanks.
Re: batch file script (for command) by Anonymous Ghost on November 15th, 2004 10:37:53 AM
Try using VisualCron which is excellent in executing perl or php batch jobs. You can look at it here: http://www.visualcron.com
Re: batch file script (for command) by Anonymous Ghost on January 19th, 2005 03:37:46 PM
do you mean a loop, or do you actually want the program to replicate itself untill the machine crashes?
batch: echo start crash.bat > crash.bat

batch loop:
:up
script you want to repeat
goto up
echo loop
goto
Re: batch file script (for command) by Anonymous Ghost on January 19th, 2005 03:49:14 PM
scratch the end part typo** (echo loop goto)

Related Problems :
Post a Note :
UserName (not required in anonymous posts)
Password (not required in anonymous posts)
Post Anonymous (check this only if you wish to post anonymously.)
Subject
Comment (limited HTML allowed)



List Home > Operating System > Windows NT/2000/XP/2003 >   [ Post New Problem ]
Copyright © 2001-2008, Nibble Guru