Login Scripts

G

Guest

I have created a small script .bat file.

It basically consists of:

ipconfig /renew
ipconfig /all
*******
use x: \\COMPUTERNAME\SHARENAME /persistent:no

I would like to replace the *'s with a DELAY of ten seconds. Does anyone
know how to do this?

TIA

DAN
 
F

Florian Frommherz

Howdy Dan!
ipconfig /renew
ipconfig /all
*******
use x: \\COMPUTERNAME\SHARENAME /persistent:no

I would like to replace the *'s with a DELAY of ten seconds. Does anyone
know how to do this?

I've got two suggestions for you:

- You could download the Windows Server 2003 Resource Kit which provides
a program called "sleep". You can use it with "sleep 10" and let your
clients sleep ten seconds before going on working on the batch. Bad
thing about this: you'd need to deploy sleep.exe on all clients first.

- You could just do something else while waiting. For example pinging a
server or computer on the network: "ping <ipaddress> -n 10" would let
the client ping the computer with <ipaddress> ten times which takes
about ten seconds as well.

cheers,

Florian
 
G

Guest

As I'm running a series of standalone computers connected by nothing more
than an amature's network I prefer the idea of getting it to do something
else...

I believe that there is a way to ECHO (I have used it with Macros in
Microsoft Access) whereby you cannot see the workings in the background.

So I could display the information that I needed; via ipconfig /all; then
turn ECHO ON, PING TEN TIMES, EXIT.

Are you aware of any ways in which you can implement/impliment** this echo
into my batch file?

**I'm a REALLY bad speller sorry!

Hope you can help.

Cheers for the warm "howdy" it restored my faith in humans! :)

DAN
 
S

Shenan Stanley

DanielWalters6 said:
As I'm running a series of standalone computers connected by
nothing more than an amature's network I prefer the idea of getting
it to do something else...

I believe that there is a way to ECHO (I have used it with Macros in
Microsoft Access) whereby you cannot see the workings in the
background.

So I could display the information that I needed; via ipconfig
/all; then turn ECHO ON, PING TEN TIMES, EXIT.

Are you aware of any ways in which you can implement/impliment**
this echo into my batch file?

**I'm a REALLY bad speller sorry!

Hope you can help.

Cheers for the warm "howdy" it restored my faith in humans! :)

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 I like "Howdy".. I should since I said it my entire college career.
 
S

Shenan Stanley

DanielWalters6 said:
As I'm running a series of standalone computers connected by
nothing more than an amature's network I prefer the idea of getting
it to do something else...

I believe that there is a way to ECHO (I have used it with Macros
in Microsoft Access) whereby you cannot see the workings in the
background.

So I could display the information that I needed; via ipconfig
/all; then turn ECHO ON, PING TEN TIMES, EXIT.

Are you aware of any ways in which you can implement/impliment**
this echo into my batch file?

**I'm a REALLY bad speller sorry!

Hope you can help.

Cheers for the warm "howdy" it restored my faith in humans! :)

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 I like "Howdy".. I should since I said it my entire college
career.

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.
 

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

Top