Computing.Net > Forums > Disk Operating System > dos scripting

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

dos scripting

Reply to Message Icon

Name: peter
Date: July 29, 2003 at 16:10:46 Pacific
OS: window 2000
CPU/Ram: p4/256mb
Comment:

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-5556

the 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,




Sponsored Link
Ads by Google

Response Number 1
Name: Secret_Doom
Date: July 30, 2003 at 10:31:46 Pacific
Reply:

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

_______________________________________________________________


0

Response Number 2
Name: Zaulkin
Date: August 6, 2003 at 01:33:08 Pacific
Reply:

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?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: dos scripting

DOS script to format data? www.computing.net/answers/dos/dos-script-to-format-data/14358.html

DOS script for FTP upload www.computing.net/answers/dos/dos-script-for-ftp-upload/14559.html

Disk space check- Dos script www.computing.net/answers/dos/disk-space-check-dos-script/15339.html