Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > regedit.exe /s : does it return with an exit code?

regedit.exe /s : does it return with an exit code?

Forum Windows XP : Windows XP General Discussion - regedit.exe /s : does it return with an exit code?

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

Hi,

does anyony know if regedit.exe, called to process data from an input
reg file, returns with a sensible exit code?
I'd like to know if reg file data was processed successful or not.

Example:
regedit.exe /s mydata.reg

if errorlevel 1 echo "error while processing reg file..."
....

Thanks in advance.
Regards,
Andy

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

Multipost; response in microsoft.public.scripting.wsh


Please don't multi-post.
http://www.aspfaq.com/etiquette.asp?id=5003

and

Multiposting vs Crossposting
http://www.blakjak.demon.co.uk/mul_crss.htm

and

What is the accepted way to share a message across multiple newsgroups?
http://smjg.port5.com/faqs/usenet/xpost.html



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/s [...] fault.mspx

Reply to Anonymous

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

Then remove the /s switch.

All the /s switch does is suppress these popups...

Registry Editor
[[Are you sure you want to add the information in path of .reg file to the
registry?
If the user clicks Yes, the user receives the following message:
Registry Editor
Information in path of .reg file has been successfully entered into the
registry.]]
How To Add, Modify, or Delete Registry Subkeys and Values by Using a
Registration Entries (.reg) File
http://support.microsoft.com/defau [...] -us;310516

Sounds like you want to see them.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1122630774.533762.44750@g49g2000cwa.googlegroups.com,
andy <andy_gk@t-online.de> hunted and pecked:
> Hi,
>
> does anyony know if regedit.exe, called to process data from an input
> reg file, returns with a sensible exit code?
> I'd like to know if reg file data was processed successful or not.
>
> Example:
> regedit.exe /s mydata.reg
>
> if errorlevel 1 echo "error while processing reg file..."
> ...
>
> Thanks in advance.
> Regards,
> Andy

Reply to Anonymous
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > regedit.exe /s : does it return with an exit code?
Go to:

There are 1225 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them
  • 01:00 bew1075k won the Uniformed badge
  • 01:00 Parasitic won the Uniformed badge
  • 01:00 X3no won the Uniformed badge
  • 01:00 Siq won the Uniformed badge
  • 01:00 wayspooled won the Uniformed badge
  • 01:00 chris62 won the Freshman badge
  • 01:00 Tattysnuc won the Freshman badge
  • 01:00 gamerk316 won the Freshman badge
  • 05:23 jsc won the Overclocking badge
  • 01:00 rolli59 won the Spy badge