1.

Solve : Running value assign.?

Answer»

Hi Everybody !!

Suppose, I have one txt file name tk.txt and want to open it five new window.
for /L %a in (1, 1, 5) do set tk.txt=tk%a.txt do type tk%a.txt
it's not work, How it could be done ??

Thanks
Jay
Quote

I have one txt file name tk.txt and want to open it five new window

Something like this may work:

Code: [Select]for /L %%a in (1, 1, 5) do (
start type tk.txt
)

There is no NEED for the set STATEMENT as the variable is USED as a counter.

Good luck.

Edit: I'm not sure where the variable fits in, SINCE you never mentioned it was part of the dataset name. As used the variable is a counter for the loop.Charming!! great !! working perfectly !!

~ if we use like counter+1 then also needn't to set

A lot of Thanks once again.

Thanks n Regards,
Jay


Discussion

No Comment Found