Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I need help to write a program to run a program and give it agreements in DOS.
In unix it would be something like this:
./page_support 555-555-5550
./page_support 555-555-5551
./page_support 555-555-5552
./page_support 555-555-5553
./page_support 555-555-5554
./page_support 555-555-5555
./page_support 555-555-5556the page_support would be in the current directory and I would make a file to run the executable with the given arguments.
Can something like this be done in DOS via command lind prompt?
Thanks,

Yeah, it's possible. Use the command FOR/L. The following command will count from 0 to 6:
for /L %%N in (0,1,6) do echo %%N
So, addapting to your case:
for /L %%N in (0,1,6) do ./page_support 555-555-555%%N
For additional information, type "FOR/?" on the command prompt.
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br_______________________________________________________________

Hi, my name is Nik (nickname = Zaulkin) and I'm 11 years old.. You mgiht not believe me.. But I'm quite good at computers.. I tryed cmd.. And I want to send a message to someone not connected to my computer like ADSL. I typed in an IP address and the message like this: net send (ip) (message)
But it says: the syntax of this command is blah blah blah... And I need help :( can you guys help me?

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |