Command Prompt Scripts

G

Guest

I have a command prompt "script" that I have that runs on startup of one
particular account within my computer.

Is it possible to DELAY the next command in my .bat file so that I have a
chance to read the information returned from my previous command.

Eg. ipconfig /all

(I wish at this point to have the information on my screen for ten seconds)

I then wish to run the rest of my commands, eg. mapping my network drives etc.

Hope you can help

DAN
 
S

Shenan Stanley

DanielWalters6 said:
I have a command prompt "script" that I have that runs on startup
of one particular account within my computer.

Is it possible to DELAY the next command in my .bat file so that I
have a chance to read the information returned from my previous
command.

Eg. ipconfig /all

(I wish at this point to have the information on my screen for ten
seconds)

I then wish to run the rest of my commands, eg. mapping my network
drives etc.

Hope you can help

Multi-posted?
Please - in the future - cross-post if you feel the necessity.

As you put in another post you didn't want to use "sleep"..

http://www.experts-exchange.com/Operating_Systems/MSDOS/Q_20978849.html
 
S

Shenan Stanley

DanielWalters6 said:
I have a command prompt "script" that I have that runs on startup
of one particular account within my computer.

Is it possible to DELAY the next command in my .bat file so that I
have a chance to read the information returned from my previous
command.

Eg. ipconfig /all

(I wish at this point to have the information on my screen for ten
seconds)

I then wish to run the rest of my commands, eg. mapping my network
drives etc.

Hope you can help

Shenan said:
Multi-posted?
Please - in the future - cross-post if you feel the necessity.

As you put in another post you didn't want to use "sleep"..

http://www.experts-exchange.com/Operating_Systems/MSDOS/Q_20978849.html

And open the link in Internet Explorer..
Firefox doesn't seem to just allow you to scroll down to the answer.
Weird. Never noticed it before.
 
T

Trevor L.

DanielWalters6 said:
I have a command prompt "script" that I have that runs on startup of
one particular account within my computer.

Is it possible to DELAY the next command in my .bat file so that I
have a chance to read the information returned from my previous
command.

Eg. ipconfig /all

(I wish at this point to have the information on my screen for ten
seconds)

I then wish to run the rest of my commands, eg. mapping my network
drives etc.

Hope you can help

DAN

Are you talking a .bat file?

If so, put the command
pause
at the the place where you want a delay

As it says, you then
Press any key to continue
 
G

Guest

PERFECT!

THANKYOU!
--
==========
Dan Walters


Trevor L. said:
Are you talking a .bat file?

If so, put the command
pause
at the the place where you want a delay

As it says, you then
Press any key to continue
 
M

Microsoft

Alternatively you could redirect the output of the Command Prompt to a text
file.
You can then access that text file whenever you have time...

Simply change your script:

ipconfig /all >"c:\a folder\a filename.txt"

And the Command Prompt output will be saved as the specified text file.

Martin.
 
G

Guest

Cheers. Works well. I've chosen to export all of the data bits to a .txt on
my desktop.


Dan Walters
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top