Looping a Line on a Script

Dell / Precision workstation 390
June 2, 2009 at 15:04:57
Specs: Microsoft Windows XP Professional, 1.861 GHz / 2045 MB
Hi Ivo and Judago,

Long time! How have you guys been doing? I am fine and loving the weather! Oh well, might as well splurge in the sun while its there, right?!

I have the following script:

echo
copy \\marie\iso1\1943*.idf \\marie\iso2\2943*.idf >>c:\temp\isocopy.log
#************************************************************************************************
"\\C$\Program Files\UltraEdit\uedit32.exe" "\\marie\iso2\2943*.idf" /M,E="\\marie\edit_idf.mac"
#************************************************************************************************
exit

I need to run line 4 into a LOOP.. how can I do that?

Loop this -->
"\\C$\Program Files\UltraEdit\uedit32.exe" "\\marie\iso2\2943*.idf" /M,E="\\marie\edit_idf.mac"

Again, thanks a lot for your help on this.

Marie

hopeless but trying


See More: Looping a Line on a Script

Report •


#1
June 3, 2009 at 03:48:48
Ciao Marie,

maybe it's global warming, actually in Milan, Italy, summer is now blowing up. As usual glad to help you, but I do not understand your request for LOOP. Please, explain better which kind of loop.

May be Judago is smarter... Waiting for your info

Ivo


Report •

#2
June 3, 2009 at 07:43:59
\\C$\Program Files\UltraEdit\uedit32.exe" "\\marie\iso2\2943*.idf" /M,E="\\marie\edit_idf.mac"

edit_idf.mac is a macro that processes the *.idf... problem is, this line only process the very first idf and not the rest.. example, i have 2943_1.idf, 2943_2.idf, 2943_3.idf, etc.. it only process 2943_1.idf

i want to add a function LOOP (?) just so that the script goes through the line again and process all 2943*.idf in the folder!

hopeless but trying


Report •

#3
June 3, 2009 at 13:06:26
for %%j in (\\marie\iso2\2943*.idf) do (
  "\\C$\Program Files\UltraEdit\uedit32.exe" "%%j" /M,E="\\marie\edit_idf.mac"
)


Report •

Related Solutions

#4
June 3, 2009 at 14:31:34
GENIUS!

thanks IVO!

Marie

hopeless but trying


Report •


Ask Question