[THIN] Re: batch file question

  • From: "Tom Erdely" <te@xxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Mon, 23 Dec 2002 19:44:21 +0100

Not to mention, \\domain.com\netlogon\....

HTH,

Tom Erdely
http://erdely.no


-----Original Message-----
From: Minero Hector B DLVA [mailto:MineroHB@xxxxxxxxxxxxx]=20
Sent: 23. desember 2002 18:58
To: 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: batch file question



Thanks to all.

_________________________________
Hector Minero
NSWCDD Code K55
Ph: (540)653-8859
Fax:(540)653-8575


-----Original Message-----
From: Magnus [mailto:magnus@xxxxxxxx]
Sent: Monday, December 23, 2002 11:42 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: batch file question



You can try this
ping -n 1 -l 1 server1
If not errorlevel 1 goto first
regedit -s \\server2\netlogon\off2k.reg

:first
regedit -s \\server1\netlogon\off2k.reg

If the ping comes back with request time out the errorlevel should be 1
if the errorlevel is not 1 then it will use server2 if it is 1 it will
use server 1 =20

This should ork for you

Magnus

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On
Behalf Of Minero Hector B DLVA
Sent: Monday, December 23, 2002 11:33 AM
To: Thin (E-mail)
Subject: [THIN] batch file question



Hello all,
I am trying to run a *.reg file from a logon script.  I have copied the
file to both Win2k Domain Controllers \\server1\netlogon and
\\server2\netlogon

I am using the command
regedit -s \\server1\netlogon\off2k.reg

If server1 happens to be down, what other comands can I use to determine
that it's down and send it to \\server2\netlogon

I ahve tried to use the %logonserver% variable, but it's not working.  I
suppose it does not get set in time: regedit -s
\\%logonserver%\netlogon\off2k.reg

Any help is appreciated.
TIA.

_________________________________
Hector Minero
NSWCDD Code K55
Ph: (540)653-8859
Fax:(540)653-8575

***********************************************=20
This Weeks Sponsor: 99point9.com
The 99Point9.com Online Tech Support=20
Helpdesk is the one-stop solution for all=20
your server-based computing needs.=20
http://www.99point9.com
************************************************
For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

***********************************************=20
This Weeks Sponsor: 99point9.com
The 99Point9.com Online Tech Support=20
Helpdesk is the one-stop solution for all=20
your server-based computing needs.=20
http://www.99point9.com
************************************************
For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm
***********************************************=20
This Weeks Sponsor: 99point9.com
The 99Point9.com Online Tech Support=20
Helpdesk is the one-stop solution for all=20
your server-based computing needs.=20
http://www.99point9.com
************************************************
For Archives, to Unsubscribe, Subscribe or=20
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm
*********************************************** 
This Weeks Sponsor: 99point9.com
The 99Point9.com Online Tech Support 
Helpdesk is the one-stop solution for all 
your server-based computing needs. 
http://www.99point9.com
************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link.

http://thethin.net/citrixlist.cfm

Other related posts: