Computing.Net > Forums > Windows 95/98 > Regedit seen as dos program

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.

Regedit seen as dos program

Reply to Message Icon

Name: DAVEINCAPS
Date: August 23, 2005 at 17:32:36 Pacific
OS: 98 SE
CPU/Ram: athlon/256
Comment:

I'm working on a system that had quite a bit of malware and a few viruses on it. I've pretty much got it cleaned up. But when I try to run regedit, a dos box opens and says regedit has performed an illegal operation, etc.

There was no pre-virus registry to restore so scanreg/restore wasn't an option. I copied over a new regedit in case it was corrupted and got the same thing. I reinstalled windows over itself and still had the problem. I'm certain it's in the registry but off course can't access it without regedit.

I found a .reg download to correct registry tools being disabled but when trying to install it I get a 'missing gedzac.exe' message. Gedzac was one of the viruses and apparently had associated it with .reg files. I rewrote the .reg file in what I thought was .inf file format and installed it and did get regedit to run once. But when I tried it again I got the dos box with the error message.

It's not a big deal--the guy was mainly concerned about his mp3 files. But I would rather not have to hunt down all the drivers again if I format and reinstall. (Why do they always lose the driver disk I give them?)

So I was wondering if anyone had come across something like this before.



Sponsored Link
Ads by Google

Response Number 1
Name: jboy
Date: August 23, 2005 at 18:43:11 Pacific
Reply:

Are you entering the full path and extension for regedit?

Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.


- Popular Mechanics, 1949


0

Response Number 2
Name: ham30
Date: August 23, 2005 at 19:13:24 Pacific
Reply:

I would give up and use a driver save program. Another option would be to save the c:\windows\inf folder abd restore it after a clean windows install. You could do that by just deleting the c:\windows (and maybe c:\program files) folder(s).


0

Response Number 3
Name: DAVEINCAPS
Date: August 23, 2005 at 20:16:27 Pacific
Reply:

Regedit was in the windows folder so it was in the path.

Last night I'd followed a recommendation google turned up and renamed it from regedit.exe to regedit.com. It didn't work. But a little while ago I changed it to a.exe, ran it and got the 'registry editing has been disabled by your administrator' message. I ran the .inf fix for that and afterwards a.exe would open regedit. But trying it as 'regedit' either as .exe or .com still wouldn't work.

I even made a regedit.bat file containing just a line loading a.exe but got an error again. So somewhere the word 'regedit' is being blocked.

Even though I did get regedit to open I couldn't find anything in the registry that may be blocking that word.

I probably won't format since I can bypass the block but if any other ideas occur to anyone, please post back.


0

Response Number 4
Name: jboy
Date: August 23, 2005 at 20:31:37 Pacific
Reply:

How about an alternate registry editor?
Registry Commander seems ok

Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.


- Popular Mechanics, 1949


0

Response Number 5
Name: DAVEINCAPS
Date: August 23, 2005 at 21:03:21 Pacific
Reply:

Yeah, I might try something like that. I think I was mainly ticked off because I couldn't figure it out. Plus it might indicate problems elsewhere, although other windows commands so far seem to run OK.


0

Related Posts

See More



Response Number 6
Name: jboy
Date: August 23, 2005 at 21:04:53 Pacific
Reply:

Sorry - bad link

MajorGeeks

Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.


- Popular Mechanics, 1949


0

Response Number 7
Name: jboy
Date: August 23, 2005 at 22:08:41 Pacific
Reply:

Yeah, that's a puzzler - sounds like some sort of restriction, like 'DisableRegistryTools'

Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.


- Popular Mechanics, 1949


0

Response Number 8
Name: DAVEINCAPS
Date: August 23, 2005 at 23:02:26 Pacific
Reply:

Yeah, this was the .inf file that fixed the 'registry editing has been disabled. . . '

[version]
signature=$chicago$
[defaultinstall]
delreg=regedit
[regedit]
HKCU,Software\Microsoft\Windows\CurrentVersion\Policies\System,"DisableRegistryTools"
HKLM,Software\Microsoft\Windows\CurrentVersion\Policies\System,"DisableRegistryTools"
[End]

But there's something else that's blocking any file named 'regedit' from running in a windows environment. I'd like to figure it out if only for my own satisfaction.

It seems to run OK. I just need to copy everything over to an 80 gig drive. I'm sure they'll be happy with it. It runs a lot better than when I got it.


0

Response Number 9
Name: jboy
Date: August 23, 2005 at 23:29:22 Pacific
Reply:

Sure, sometimes it's nice to know the 'why'

"It runs a lot better than when I got it."

I'll bet it does

Most (if not all) of the ones I see are messed up either with malware or half installed applications, often both. Got to be aggravating to use.

Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.


- Popular Mechanics, 1949


0

Response Number 10
Name: mesich
Date: August 24, 2005 at 04:28:23 Pacific
Reply:

Hi DAVEINCAPS, jboy, ham30, hello everyone,

DAVEINCAPS,

I've created a .reg file for you. The first two lines will remove all policies. The other lines will restore the default values for regedit and the associations for .reg files.

It sounds like you won't be able to run it from Windows in normal mode but you could try it in Safe-Mode.

If that doesn't pan out try merging it from a DOS prompt after starting the computing using a bootdisk.

Not sure if your familiar with merging a .reg file from a DOS prompt so I shall include the command.

Start the computer with a bootdisk.

REGEDIT /S C:\DAVE.REG

Here's the file.

Best Regards,
Mesich



0

Response Number 11
Name: Bryco
Date: August 24, 2005 at 12:21:19 Pacific
Reply:

If it is just a naming problem then copy regedit to the desktop and rename the copy to dave.exe and try it.

I just did that and it runs just fine.

Fix your problems and then hopefully you can run regedit.exe from the command line.

Bryan


0

Response Number 12
Name: WhitPhil
Date: August 24, 2005 at 12:56:57 Pacific
Reply:

Do a search for the file REGEDIT.COM

There is a virus that drops copies of itself as REGEDIT.COM, PING.COM and a bunch of other standard utilities.

COM files get run before EXE files (with the same name).

ALCRA
http://securityresponse.symantec.com/avcenter/venc/data/w32.alcra.a.html

PICRATE
http://securityresponse.symantec.com/avcenter/venc/data/w32.picrate.a@mm.html

Run an online scan

Panda
http://www.pandasoftware.com/activescan/activescan/ascan_1.asp

HouseCall
http://housecall.trendmicro.com/


0

Response Number 13
Name: mesich
Date: August 24, 2005 at 14:15:11 Pacific
Reply:

Hi DAVEINCAPS, jboy, ham30, Bryco, WhitPhil, hello everyone,

Bryco,

As always, it's an extreme pleasure to be active in a thread with yourself.

I can most certainly see where you are coming from with your logic but, I would be very interested in how to disable a word within Win98.

WhitPhil,

It's an extreme pleasure to be active in a thread with yourself, DAVINCAPS, jboy, ham30 and Bryan. I am honored to share this thread with yourself and the others.

You mentioned that .com files get run before .exe files. Isn't that within DOS and not Win98?

Best Regards,
Mesich



0

Response Number 14
Name: WhitPhil
Date: August 24, 2005 at 14:19:33 Pacific
Reply:

It's also true via Start > Run.



0

Response Number 15
Name: mesich
Date: August 24, 2005 at 14:58:46 Pacific
Reply:

Hi DAVEINCAPS, jboy, ham30, Bryco, WhitPhil, hello everyone,

WhitPhil,

Thank you, it's always nice to learn something new!

I just checked it out by creating a file named regedit.com. I then ran regedit from Start/Run and the DOS window, as described by DAVEINCAPS, popped right up.

Thanks again!

Best Regards,
Mesich


0

Response Number 16
Name: Bryco
Date: August 24, 2005 at 15:23:43 Pacific
Reply:

http://www.sysinternals.com/Utilities/RootkitRevealer.html is a very interesting article about how malware hide themselves within the registry.

There is also an application to reveal them at the bottom of the page. I have not tried it out yet. I got the link from a recent Langa newsletter.

Mesich, thank you for your kind words and I feel the same way too. It is good to see you all in a thread.

Bryan


0

Response Number 17
Name: jboy
Date: August 24, 2005 at 16:26:57 Pacific
Reply:

August company indeed : )

Yes, that's where I was going with my #1 - specifying the full path name & extension defeats that kind of thing

Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.


- Popular Mechanics, 1949


0

Response Number 18
Name: WhitPhil
Date: August 24, 2005 at 18:09:03 Pacific
Reply:

True.

But that's hardly a solution when a virus is involved.

And, in a good, normal environment it shouldn't be required. At least the extension, and in the case of a Windows utility, the full path.


0

Response Number 19
Name: jboy
Date: August 24, 2005 at 18:30:57 Pacific
Reply:

Oh, no - not a solution but a workaround (and something of a test)

Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.


- Popular Mechanics, 1949


0

Response Number 20
Name: DAVEINCAPS
Date: August 24, 2005 at 18:33:08 Pacific
Reply:

Thanks for the help everyone.

Mesich, I installed the .reg file and unfortunately got the same results. When I'd earlier gotten regedit to open by renaming it I checked the keys that I thought might relate but didn't find anything.

WhitPhil, I did searches for any files named 'regedit' and didn't find any other executables. I'm going to tell them to run an online virus scan when they get it back. I know there's got to be a lot of virus files still on the drive. I deleted a few of the obvious ones but didn't have the capability to do a complete scan. But I think I've kept most of the stuff from loading.

Bryan, I'd decided to rename it as 'regedt.exe' and leave it as that but your idea of moving it to the desktop was something I hadn't tried. I went through 'my computer' to the windows folder and double clicked on it (as regedit) and it opened just fine. Then I thought about jboy's original advice about the full path. I hadn't considered actually entering the path info since the windows folder was already in the path. But I went ahead and entered c:\windows\regedit in the run line and again it opened just fine.

So it's only when 'regedit' is entered by itself in the run line that the problem occurs. If they don't come and get it this evening I may look at it again and focus on why that should make any difference.

Thanks again for the help. I really appreciate it.


0

Response Number 21
Name: WhitPhil
Date: August 24, 2005 at 19:19:56 Pacific
Reply:

Dave:

If you are doing

Start > Run > Regedit

and SOMETHING is starting, other than REGEDIT.com, there HAS to be files on the system called REGEDIT, other than the exe.

And, they do not have to be in \Windows


0

Response Number 22
Name: DAVEINCAPS
Date: August 24, 2005 at 19:58:12 Pacific
Reply:

WhitPhil, you're a genius. I was going to point out that I'd done full drive scans for any file named regedit and hadn't found any other executable. But I went back and did it again. This time before running it I chose the 'show all files' option, just in case the 'find' fuction didn't check for hidden files. The search found a hidden system file named regedit.com in the windows\system folder. I renamed it to something else (just in case it was legit) and typed in 'regedit' on the run line. Regedit ran normally.

After the initial scans didn't find other files I had assumed something was preventing regedit from running normally when it was actually a second file.

Thanks for the insisting there must be another file. Since I wasn't thinking in that direction I doubt I would have figured it out.


0

Response Number 23
Name: WhitPhil
Date: August 24, 2005 at 20:09:45 Pacific
Reply:

Dave:

Glad you found it.
It sounds like the Alcra virus.
Check my link above, then Technical Details and you will see the other files that get dropped there, as well as the others it drops.

And, check the Picrate link. It does similar things, but also drops the SpyBot virus.


0

Response Number 24
Name: DAVEINCAPS
Date: August 24, 2005 at 20:38:23 Pacific
Reply:

Yeah, that must be it. Now that I knew what to look for I checked for hidden files in the system folder and found all the other ones listed on the alcra site. I think I'll check the other files and registry entries it lists there to see what else the virus left.


0

Response Number 25
Name: DAVEINCAPS
Date: August 25, 2005 at 12:11:36 Pacific
Reply:

I just wanted to thank everyone again. The suggestions you gave all pointed in the right direction but I had my sights set on a registry problem.

I've deleted the files now but I think the reason it ran successfully from the windows\system folder is because it had a system attribute. Even when I renamed the legitimate regedit.exe to regedit.com the virus version ran instead. Apparently with similarly named files, the one with the system attribute has priority.


0

Response Number 26
Name: WhitPhil
Date: August 25, 2005 at 13:11:07 Pacific
Reply:

I "think" that it was System Restore that got in your way.

When you did the rename, Restore saw this action happen, and since it was one of it's protected files, "restored" the correct Regedit.exe, leaving the viral Regedit.com still there.
Thus, doing a run, still found the COM file first.


0

Response Number 27
Name: DAVEINCAPS
Date: August 25, 2005 at 13:59:28 Pacific
Reply:

I'm not exactly sure what you mean.

Regedit.exe was in the windows folder and the virus regedit.com was in windows\system. When I renamed regedit.exe to regedit.com it stayed that way. So I had 2 different files named regedit.com--one in windows and one in windows\system. The only reason I could think of why the OS would prefer the virus version is it had the system attribute whereas the legitimate version didn't.

Now my curiosity has been piqued again. I've still got the original drive. When I get around to it I'll experiement with the virus version of the file and see if changing its system attribute makes any difference.


0

Response Number 28
Name: WhitPhil
Date: August 25, 2005 at 14:54:44 Pacific
Reply:

Sorry Dave, forgot the forum I was in.

When you do Start > Run, it finds the file based on PATH first, and then looks for COM, EXE, BAT

Check your PATH

I am presuming it will show \Windows\System prior to \Windows

Running apps don't pay any attention to the attributes


0

Response Number 29
Name: DAVEINCAPS
Date: August 25, 2005 at 16:45:51 Pacific
Reply:

The path was just c:\windows;c:\windows\command. That's why I was kind of suprised it was running from the system folder.

You're right about the system attribute being irrelevent. I just created a text file on my computer and saved it as 'regedit.com' with no attributes in the system folder. I ran 'regedit' from the run line and got the same error as with the virus. Then, what's odd, I renamed it 'regedit.exe' and then 'regedit.bat'. With .exe I got 'regedit is not a valid win32 application'. With .bat it ran as a batch file would. All this with the real regedit.exe sitting in the windows folder.

So it looks like it's checking the windows\system folder first and running it if it's there, regardless of the extension. I guess windows sets its priority folder as windows\system regardless of the dos path.


0

Response Number 30
Name: ham30
Date: August 25, 2005 at 21:42:39 Pacific
Reply:

I think if you specify the complete address of the file it will get priority over c:\windows\system. I believe Dos and Windows only use the path if the file isn't found in the current folder or the folder designated.


0

Response Number 31
Name: jboy
Date: August 25, 2005 at 21:59:36 Pacific
Reply:

Specifying the full path name means that the PATH won't be searched even if the file isn't there. The request is for the file at that location only

Specifying the extension means that the default priority of execution (COM over EXE over BAT) does not come into play either.

It does seem odd that \windows\system would have priority over \windows - maybe it is a Windows quirk, or by design. In DOS the last folder (directory) accessed becomes the current 'default' directory for that drive - although I don't know if that's the case here

Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.


- Popular Mechanics, 1949


0

Response Number 32
Name: DAVEINCAPS
Date: August 25, 2005 at 23:59:48 Pacific
Reply:

Windows dumps its dll, vxd and other files it needs to access there but I never thought of it as part of the path. The path (I thought) was just the route the OS takes to find a command or executable file, not its ancillary files. But I guess that's not quite right.

I wonder if any other unexpected folders are in the path. I moved regedit.exe to system32 and system\iosubsys to see if windows would find it when it ran but got the 'this file does not have a program associated with it. . . '

I did a brief google search to see if I could find what the real windows path is but couldn't find anything.


0

Response Number 33
Name: ham30
Date: August 26, 2005 at 09:36:01 Pacific
Reply:

You're absolutely right Jboy. I don't know where my mind was.

Dan, you can check the path by typing 'path' in dos or a dos window. Just add c:\windows\system in front of the displayed path.


0

Response Number 34
Name: ham30
Date: August 26, 2005 at 09:40:06 Pacific
Reply:

OOps sorry Dave. I'm getting too careless. I better straighten up.


0

Response Number 35
Name: jboy
Date: August 26, 2005 at 09:59:05 Pacific
Reply:

In DOS there was the 'append' command to allow: "programs to open data files in specified directories as if they were in the current directory"

Likely there's a similar arrangement in Windows (things were simpler in DOS)


Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.


- Popular Mechanics, 1949


0

Response Number 36
Name: DAVEINCAPS
Date: August 26, 2005 at 13:28:49 Pacific
Reply:

Typing the dos PATH won't show the system folder unless it's been added in autoexec.bat or updated at a dos prompt. But it's obviously there as part of a windows path.

Maybe it is something like 'append'. Some other .exe files run from the system folder, msconfig being one. I'm thinking the system folder isn't in the dos path because anything that runs from there is exclusively a windows program.


0

Response Number 37
Name: jboy
Date: August 26, 2005 at 17:44:04 Pacific
Reply:

Must be something like that - just tried (from the prompt) running a DOS app moved to \system - - 'bad command' etc.

From the 'run' box - no problemo

Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.


- Popular Mechanics, 1949


0

Sponsored Link
Ads by Google
Reply to Message Icon






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: Regedit seen as dos program

Partition seen as non-dos www.computing.net/answers/windows-95/partition-seen-as-nondos/155375.html

PCMCIA modems in Win95 environment with a DOS program www.computing.net/answers/windows-95/pcmcia-modems-in-win95-environment-with-a-dos-program/29021.html

Problem running DOS programs in Win 98 www.computing.net/answers/windows-95/problem-running-dos-programs-in-win-98/89785.html