[windows2000] Registry key check

  • From: Anthony Abraham <AABRAHAM@xxxxxxxxxxxxx>
  • To: "'windows2000@xxxxxxxxxxxxx'" <windows2000@xxxxxxxxxxxxx>
  • Date: Mon, 12 Jan 2004 15:31:35 +1100

Hi

Im looking at running a batch job that runs a reg file if a registry key
exists.  I then want to delete the directory the reg file resides in.  Does
anyone know a simply way of checking for an existence of a registry key??.  

Im running the reg file silently...

regedit /s c:\admin\file1.reg
wait -5
rmdir /s /q c:\admin

However I only want to run it if the key exists - is there an easy way of
doing this?

Thanks
Anthony
________________________________________________________
NOTICE
The information in this email and or any of the attachments may contain;
a. Confidential information of Credit Union Services Corporation (Australia) 
Limited (CUSCAL) or third parties; and or
b. Legally privileged information of CUSCAL or third parties; and or
c. Copyright material of CUSCAL or third parties.
If you are not an authorised recipient of this email, please contact CUSCAL 
immediately by return email or by telephone on 61-2-8299 9000 and delete the 
email from your system.
We do not accept any liability in connection with computer virus, data 
corruption, interruption or any damage generally as a result of transmission of 
this email.
********************************************************
This Weeks Sponsor StressedPuppy.com Games
Feeling stressed out? Check out our games to
relieve your stress.
http://www.StressedPuppy.com
********************************************************
To Unsubscribe, set digest or vacation
mode or view archives use the below link.

http://thethin.net/win2000list.cfm

Other related posts: