From: lintux AT dds DOT nl (Wilmer van der Gaast) Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer Subject: Re: Detecting Windows and Windows directory from DOS Date: 18 Mar 2000 11:16:03 GMT Organization: WorldOnline - The Internet Communication Company Lines: 20 Message-ID: References: <8am5ub$o0v$1 AT news6 DOT svr DOT pol DOT co DOT uk> <8avi0l$is6$1 AT mango DOT singnet DOT com DOT sg> NNTP-Posting-Host: vp177-229.worldonline.nl X-Trace: nereid.worldonline.nl 953390811 5725 195.241.177.229 (18 Mar 2000 14:46:51 GMT) X-Complaints-To: newsmaster AT worldonline DOT nl NNTP-Posting-Date: 18 Mar 2000 14:46:51 GMT X-Info: Spamming is uncool, annoying, and not useful. Please stop doing it. User-Agent: slrn/0.9.5.7 (UNIX) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com One day, Yong-Kwang Goh made the following words appear on our screens: > This is not foolproof and it'll not work if your program can't get regedit > to work for it, either regedit cannot be found, is not installed at all or > access to regedit is denied for security reason. > Also, if the user installed Windows into C:\WINDOZE or not on drive C, things won't work either. A good way to solve this might be looking in the PATH environment variable. Just look for the windir\COMMAND, strip the \COMMAND part and you have the directory where you must be able to find regedit. And it's _very_ difficult to prevent this directory from being in the PATH... :( I hate such automatic stuff... Greetings, -- | Wilmer van der Gaast | Hi, I'm a signature virus. plz | | lintux at lintux.cx | set me me as your signature | | http://www.lintux.cx/ | and help me spread :) |