It should should work w/o using 'Then' -----Original Message----- From: magnus [SMTP:magnus@xxxxxxxx] Sent: Friday, December 27, 2002 8:38 AM To: thin Cc: magnus Subject: [THIN] Re: batch file question That should work but I think that you need to set the if not exist line to if not exist .... Then set ... Magnus -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Mack, Rick Sent: Monday, December 23, 2002 7:35 PM To: 'thin@xxxxxxxxxxxxx' Subject: [THIN] Re: batch file question Hi, You can set up a simple redundant file location wih something like: set netdir=\\server1\files if not exist \\server1\files\file.txt set netdir=\\server2\files regedit -s %netdir%\of2k.reg regards, Rick Ulrich Mack rmack@xxxxxxxxxxxxxx <mailto:rmack@xxxxxxxxxxxxxx> Volante Systems 18 Heussler Terrace Milton 4064, Queensland Australia tel +61 7 32467777 -----Original Message----- From: Minero Hector B DLVA [mailto:MineroHB@xxxxxxxxxxxxx] Sent: Tuesday, December 24, 2002 2:33 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 *********************************************** 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 ------------------------------------------------------------------------ -------------------------------------------- The information contained in this e-mail is confidential and may be subject to legal professional privilege. It is intended solely for the addressee. If you receive this e-mail by mistake please promptly inform us by reply e-mail and then delete the e-mail and destroy any printed copy. You must not disclose or use in any way the information in the e-mail. There is no warranty that this email or any attachment or message is error or virus free. It may be a private communication, and if so, does not represent the views of Volante group Limited. *********************************************** 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 *********************************************** 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 *********************************************** 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