Computing.Net > Forums > Windows 95/98 > silent Registry

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

silent Registry

Reply to Message Icon

Name: kiwi_hk
Date: April 6, 2005 at 18:47:12 Pacific
OS: Windows 98
CPU/Ram: 64
Comment:

Hi
I have some registry changes in my batch file when a user login, I just want to make it automatic even if the registry key cannot be imported. I have tried putting /y and /s at the beginning and end.

How do I make it so there is no pop up window telling me to click ok when the registry can't be imported or run.

Thanks

Ken



Sponsored Link
Ads by Google

Response Number 1
Name: ham30
Date: April 6, 2005 at 20:15:03 Pacific
Reply:

That sounds like you are trying to hide what you are doing from someone.


0

Response Number 2
Name: Derek
Date: April 7, 2005 at 15:46:14 Pacific
Reply:

I can think of legitimate reasons for this request so will give you the benefit of the doubt. Here is an example of running a reg file named mrudel.reg from a batch file:

regedit /s mrudel.reg

Derek.W


0

Response Number 3
Name: kiwi_hk
Date: April 7, 2005 at 18:16:14 Pacific
Reply:

As mentioned above I have already tried the /s switch, it still pop up a windows saying it can't import the registry and I have to click OK.

Basically we have Windows 98 and Windows 2000/XP machine, the registry file works in 2000/XP but not work in Windows 98. I just don't want the annoying popup.

Thanks

Ken


0

Response Number 4
Name: mesich
Date: April 8, 2005 at 05:17:29 Pacific
Reply:

Hi Ken, Ham30, Derek, hello everyone,

Are you wanting the information to be imported to the Win98 registry when logging into Win98 or just to the WinXp registry when logging into WinXp?

If your intentions is to only have the information imported on WinXp have the .reg file load from the WinXp registry.

What registry editor version is the .reg file? It is listed in the header of the file.

Version 5.0 will not work with Win98 and will give an error message that it is not a valid .reg file. The /s switch nor any others is going to get rid of that particular error message.

Best Regards,
Mesich



0

Response Number 5
Name: Derek
Date: April 8, 2005 at 12:40:01 Pacific
Reply:

Yes, you need to have the exact syntax for the particular registry version and also the batch and reg files.

The format given should most certainly work in W98. This was given because you said you had tried /s in various places (which didn't inspire confidence). There is only one right place.

What happens when you just double click the .reg file without the batch file - does it import it then?

If you are prepared to submit the scripts of both the .reg & .bat file then maybe we can see what is wrong. I think it unlikely we are looking for some obscure fault with your system, only the way the batch/reg files are written for W98.

Derek.W


0

Related Posts

See More



Response Number 6
Name: kiwi_hk
Date: April 10, 2005 at 22:04:25 Pacific
Reply:

Hi

Yes, it's version 5, it runs from our NT server and we have Windows XP/Windows 2000 and Windows 98 client.

What can I do?

Ken


0

Response Number 7
Name: mesich
Date: April 11, 2005 at 04:16:31 Pacific
Reply:

Hi Hi Ken, Ham30, Derek, hello everyone,

Hi Ken,

Change the header to Regedit4.

Best Regards,
Mesich



0

Response Number 8
Name: kiwi_hk
Date: April 18, 2005 at 00:04:03 Pacific
Reply:

Hi Derek

If I do that, that means my Windows 2000 and XP will give me an error just like the Windows 98 before.

KEn


0

Response Number 9
Name: Derek
Date: April 18, 2005 at 10:31:57 Pacific
Reply:

Do what? Now I'm totally confused.

Derek.W


0

Response Number 10
Name: kiwi_hk
Date: April 18, 2005 at 17:07:12 Pacific
Reply:

Hi Derek

You know we have a NT server with Windows XP/2000 Pro and Windows 98 client.

They login running a login script that runs *.reg files. The *.reg is a version 5 which will import ok in XP and 2000 client machine but not Windows 98, it gives me a windows popup errors saying there is an error in importing the *.reg file. I just don't want it popping up which I need to click OK, I don't mind if it can't import into Windows 98.

What you said by changing the *.reg to regedit4, this makes it so XP and 2000 machine will give me a popup like Windows 98 as it can't import version 4 of *.reg into windows xp.

Ken



0

Response Number 11
Name: Derek
Date: April 18, 2005 at 18:51:37 Pacific
Reply:

Aha, now I know why I was confused. That was from mesich not me.

Having said that I can't see an easy way forward. The problem doesn't seem related to the original query about using /s in the batch file. It's that the format of the "registry files themselves" are different with W98 and the other two systems.

What it seems you need is a batch file which tests which system it is running on (somehow) then calls up the appropriate reg file. I suppose this might be possible but it would take a bit of working out. Then you could use /s to automate it.

Sorry, I'm not familiar enough with XP/2k to take this further. Maybe someone else can.

Derek.W


0

Response Number 12
Name: mesich
Date: April 18, 2005 at 19:39:21 Pacific
Reply:

WinXp and Win2K can normally run using regedit4.

Did you actually try it?

I've ran many of them on WinXp without a problem. If you have tried it already post back with the .reg file and I'll look at it.

Best Regards,
Mesich



0

Response Number 13
Name: mesich
Date: April 19, 2005 at 04:32:00 Pacific
Reply:

Hello everyone,

Ken,

It should also be REGEDIT4 not regedit4

Best Regards,
Mesich



0

Response Number 14
Name: kiwi_hk
Date: April 26, 2005 at 21:57:39 Pacific
Reply:

Hi Mesich

Thanks but still not working, I have changed the heading but when I go to a windows 98 machines and edit the reg it's gives me garbage, seems like registry from windows xp can't be edited in Windows 98 regedit 4. So that's why it can't be run saying the script is invalid.

Ken


0

Response Number 15
Name: mesich
Date: April 27, 2005 at 01:25:18 Pacific
Reply:

Hi Ken, ham30, Derek, hello everyone,

Ken,

I've had no problems at all using REGEDITT4 on WinXp.

Could you post the registry file or email it too me? If you email it, change the file extention to something like .old so my isp will allow it to go through.

Best Regards,
Mesich



0

Sponsored Link
Ads by Google
Reply to Message Icon

Tab Key & Space Bar P... Deleting desktop icons



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: silent Registry

Silent Registry Modification- Help! www.computing.net/answers/windows-95/silent-registry-modification-help/38905.html

My Registry Editor isn't Searching! www.computing.net/answers/windows-95/my-registry-editor-isnt-searching/61765.html

registry Healer www.computing.net/answers/windows-95/registry-healer/117713.html