MSFN Forum: REG.EXE or SWREG.EXE for Win98? - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

REG.EXE or SWREG.EXE for Win98? Looking for a version of these programs to use in batch files Rate Topic: -----

#1 User is offline   North of Watford 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 12-October 07

Posted 09 October 2010 - 02:20 PM

Do you have, or know where I can get, versions of either or both of these programs that run in Win98SE? I want one or other for a batch file.

SWReg.exe is a disappointment, as the web page promises that it will work in Win9x, but when tried it actually tells me it is missing something from NT Kernel. I have tried the Microsoft versions 1.0, 1.5, and 2.0. All of them want a WinNt family OS in order to get out of bed.

Many thanks for any help you can give.

Jeff


#2 User is offline   loblo 

  • Oldbie
  • PipPipPipPip
  • Group: Members
  • Posts: 679
  • Joined: 12-January 10
  • OS:ME
  • Country: Country Flag

Posted 09 October 2010 - 04:29 PM

You can find reg.exe here (you may need to use an ftp browser if your web browser does not want to connect): ftp://ftp.microsoft....Reskit/REGISTRY

Syntax and examples in WIN98RK.CHM at ftp://ftp.microsoft....n98/Reskit/HELP btw.

:hello:

This post has been edited by loblo: 09 October 2010 - 04:49 PM


#3 User is offline   herbalist 

  • paranoid independent
  • PipPipPipPipPip
  • Group: Members
  • Posts: 726
  • Joined: 15-December 06
  • OS:98
  • Country: Country Flag

Posted 10 October 2010 - 02:31 AM

Regedit.exe works in batch files. Syntax here.

#4 User is offline   North of Watford 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 12-October 07

Posted 10 October 2010 - 02:45 AM

Many thanks to both of you for such swift responses.

Thanks for the info about RegEdit. I hadn't realised that it would work in a batch file. I'll tuck that gen away somewhere safe. What I want to do is find the current version of Java. Alas, I can't see the switches on RegEdit allowing me to do that.

Thanks for the location of the Win98 ResKit. I had been hunting all over the place to find it; talk about hiding something in plain sight! The version of Reg.exe there is 1.03. As I will probably want to use the kit for longer than MS want to make it available, I think I will do the obvious!

A quick gripe in passing at the developers of Java: Why do they make it impossible to redirect the output of the command "java -version" to a text file? But at least I can now find it out, thanks to the help of your good selves.

Jeff

#5 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,864
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 10 October 2010 - 03:19 AM

View PostNorth of Watford, on 10 October 2010 - 02:45 AM, said:

A quick gripe in passing at the developers of Java: Why do they make it impossible to redirect the output of the command "java -version" to a text file?

Probably because java uses "BIOS" not "DOS" services to write... I'ts a PITA, but, then again, it'd be fun if java relied on DOS, wouldn't it? :P

#6 User is offline   jds 

  • -DOS+
  • PipPipPipPip
  • Group: Members
  • Posts: 595
  • Joined: 03-June 08
  • OS:98SE
  • Country: Country Flag

Posted 11 October 2010 - 11:35 PM

View Postdencorso, on 10 October 2010 - 03:19 AM, said:

View PostNorth of Watford, on 10 October 2010 - 02:45 AM, said:

A quick gripe in passing at the developers of Java: Why do they make it impossible to redirect the output of the command "java -version" to a text file?

Probably because java uses "BIOS" not "DOS" services to write... I'ts a PITA, but, then again, it'd be fun if java relied on DOS, wouldn't it? :P


Actually ...

c:\djgpp\bin\redir -eo java -version > gotcha.txt :yes:

Of course, you'll need to go here first : http://www.delorie.com/djgpp/

Joe.

#7 User is offline   North of Watford 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 12-October 07

Posted 11 October 2010 - 11:51 PM

View Postjds, on 11 October 2010 - 11:35 PM, said:

Actually ...

c:\djgpp\bin\redir -eo java -version > gotcha.txt :yes:

Of course, you'll need to go here first : http://www.delorie.com/djgpp/

Joe.

Joe,

Many thanks. I never even thought of that.

Jeff

#8 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,864
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 12 October 2010 - 01:34 AM

:blink: Wow!
Great catch, Joe! :thumbup
It'd never have crossed my mind it might be writing to stderr... :blushing:
Of course, thanks to you, from now on, that'll be part of my hypotheses palette. :yes:

Now, if I may suggest a trivial improvement to your great idea:

c:\djgpp\bin\redir -eo java -version | find "version" > gotcha.txt

#9 User is offline   jds 

  • -DOS+
  • PipPipPipPip
  • Group: Members
  • Posts: 595
  • Joined: 03-June 08
  • OS:98SE
  • Country: Country Flag

Posted 09 June 2011 - 07:27 PM

View Postloblo, on 09 October 2010 - 04:29 PM, said:

You can find reg.exe here (you may need to use an ftp browser if your web browser does not want to connect): ftp://ftp.microsoft....Reskit/REGISTRY

Syntax and examples in WIN98RK.CHM at ftp://ftp.microsoft....n98/Reskit/HELP btw.

:hello:


Just found there's a little security update to the W98 Resouce Kit : ftp://ftp.microsoft.com/reskit/win98/

Also, for those wishing to download the RK (etc.), the 'wget' (or 'wget_w32') utility works a treat, recursive syntax is : wget -r ftp://ftp.microsoft....S/Win98/Reskit/
(start near the root directory of your local drive, to limit the overall directory depth created)

Joe.

PS. The version of 'reg.exe' that comes with ResKit 98 is 1.0.3. If you need version 2.* of 'reg.exe' (the command options are significantly changed), you can get version 2.0.0 (for W2000, but runs on W98, at least with KernelEx installed) from : http://download.micr...upporttools.exe (open with 7-Zip to get 'support.cab', then extract 'reg.exe' from that).

This post has been edited by jds: 10 June 2011 - 02:14 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy