Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.reg file import error

Status
Not open for further replies.

SgtPepps

IS-IT--Management
May 1, 2002
109
GB
Hi everyone, I've a .bat that will call a .reg containing:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN]
"WFN Loader"="REG_DWORD:REMOVE"

[HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUNSERVICES]
"StartWFNServ"="REG_DWORD:REMOVE"

Hopefully I'd like to change the value of two existing keys to the text "REMOVE". However, when the .bat calls the .reg, the following error is displayed:-

"Cannot Import WFNReg.reg:Error opening the file. There may be a disk of file system error"

I have no idea where to start looking for the Issue, I have considered that the .reg file is located on a Netware4.11 server and that uses a differant file system than Windows. Could this be the Issue? I've not been able to find any help on microsoft.com and I'm new to .reg files so have no experiance to draw from.

Any help would be appreciated.

Cheers

mike
 
Hello SgtPepps,

It should be this, per the description of what you intend to do.
Code:
REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN]
"WFN Loader"="REMOVE"

[HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUNSERVICES]
"StartWFNServ"="REMOVE"
regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top