Previous Thread:   Error 0xC0000218 Software Hive corrupted

10/25/2005 10:28:26 AM    Re: Reg Add - Where am I going wrong??
Hey good one. The things we do to ourselves.  
  
--  
  
Regards,  
  
Dave Patrick ....Please no email replies - reply in newsgroup.  
  
Microsoft Certified Professional  
  
Microsoft MVP [Windows]  
  
http://www.microsoft.com/protect  
  
"Brian Graham" wrote:



10/25/2005 10:32:01 AM    Reg Add - Where am I going wrong??
I'm trying to add a key to the (Windows XP SP2) registry to disable Netware file caching.  
  
Its for all database users, ultimately in a batch file called from the login script.  
  
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\NetWareWorkstation\Parameters /v "File Caching" /t REG_DWORD /d 00000000 /f  
  
Instead of adding the key, the batch file just loops the command over and over..  
  
If someone can offer some insight, it would be appreciated. Meanwhile I'll go bang my head against the wall some more.  
  
Thanks.  
  
--  
  
Brian

10/25/2005 11:34:54 AM    Re: Reg Add - Where am I going wrong??
Found the problem.  
  
The batch file being invoked was called reg.bat .  
  
Bad naming choice.  
  
It was calling itself again, rather than using the reg command.  
  
--  
  
Brian  
  
I'm trying to add a key to the (Windows XP SP2) registry to disable Netware file caching.  
  
Its for all database users, ultimately in a batch file called from the login script.  
  
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\NetWareWorkstation\Parameters /v "File Caching" /t REG_DWORD /d 00000000 /f  
  
Instead of adding the key, the batch file just loops the command over and over..  
  
If someone can offer some insight, it would be appreciated. Meanwhile I'll go bang my head against the wall some more.  
  
Thanks.  
  
--  
  
Brian

10/30/2005 12:12:59 PM    Re: Reg Add - Where am I going wrong??
In microsoft.public.win2000.registry Brian Graham wrote:  
  
Seen that before <VBG>  Glad it is sorted now.  
  
One additional suggestion is to always use fully qualified paths  
  
(including the extension) in batch files.  
  
e.g  <FQP>\REG.EXE ADD ...  
  
And another is that quoting the registry path always never hurts  
  
and can help a lot on occasion. <G>