PC Review Forums Newsgroups Windows XP Windows XP Security Login Scripts

Reply

Login Scripts

 
Thread Tools Rate Thread
Old 25-05-2006, 10:15 PM   #1
=?Utf-8?B?RGFuaWVsV2FsdGVyczY=?=
Guest
 
Posts: n/a
Default Login Scripts


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

--
==========
Dan Walters
  Reply With Quote
Old 25-05-2006, 10:40 PM   #2
Florian Frommherz
Guest
 
Posts: n/a
Default Re: Login Scripts

Howdy Dan!

DanielWalters6 wrote:
> 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
--
Nachwuschsadmin aus dem Süddeutschen/Germany.
eMail: Vorname [bei] frickelsoft [Punkt] net.
  Reply With Quote
Old 25-05-2006, 11:18 PM   #3
=?Utf-8?B?RGFuaWVsV2FsdGVyczY=?=
Guest
 
Posts: n/a
Default Re: Login Scripts

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
--
==========
Dan Walters


"Florian Frommherz" wrote:

> Howdy Dan!
>
> DanielWalters6 wrote:
> > 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
> --
> Nachwuschsadmin aus dem Süddeutschen/Germany.
> eMail: Vorname [bei] frickelsoft [Punkt] net.
>

  Reply With Quote
Old 26-05-2006, 01:11 AM   #4
Shenan Stanley
Guest
 
Posts: n/a
Default Re: Login Scripts

DanielWalters6 wrote:
> 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/Ope...Q_20978849.html

And I like "Howdy".. I should since I said it my entire college career.

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


  Reply With Quote
Old 26-05-2006, 01:27 AM   #5
Shenan Stanley
Guest
 
Posts: n/a
Default Re: Login Scripts

DanielWalters6 wrote:
> 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 Stanley wrote:
> 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/Ope...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.

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off