Mail Archives: djgpp/2000/03/17/10:49:12
Damian Yerrick wrote:
> >>You can get the windows directory in the 'windir' environment variable,
> >>but the location of the Start Menu is stored in the windows registry,
> >>so if somebody moves their Start Menu,
> Unlikely.
I agree, but i really hate programs that install things in the wrong
location. Example: I had windows installed on my "D:" drive once, and I
noticed that many programs still tried to install into "C:\Program Files".
That is also movable and on my machine was "D:\Program Files".
> >>then your program would fail to add to it.
> Installer: "If you've moved your Start Menu folder,
> you will have to add the shortcut manually."
That would be acceptable...
> >All right. How do I read the Windows registry from a DOS program (if it's
> >possible)?
> That's what I've been wondering. Why doesn't it just store
> its registry as text like GNU/Linux does?
Disclaimer: I'm not an advocate of the Win32 registry.
Accessing data in the registry is _far_ faster than parsing a text file.
--
(\/) Rolf Campbell (\/)
- Raw text -