"Access is Denied" when executing application from Command Prompt
What are your access rights to NTVDM.EXE? (This is the component which runs DOS and 16-bit programs)
I suggest using Process Monitor to find out exactly which process is trying and failing to access which file.
EDIT TO ADD
Looking at the results of Process Monitor, it looks like you've got the "Prevent access to 16-bit applications" policy set. To fix it, Start -> Run, Gpedit.msc
. Navigate to Computer Configuration -> Administrative Templates -> Windows Components -> Application Compatibility and look at "Prevent access to 16-bit applications" in the right-hand pane. If it says Enabled, change it. Otherwise, look for the same policy under User Configuration.
Related videos on Youtube
xpda
Updated on September 17, 2022Comments
-
xpda over 1 year
Today when I tried to run an old DOS utility from the Windows XP Command prompt, I got the error message "Access is Denied." Then I found that most of the DOS utilities would not run, even though I have "full control" over them. They worked just fine a few weeks ago, and I have not made any OS changes other than Windows Upgrades.
Then I tried running
edlin.exe
andedit.com
from the Windows\system32 folder. Same result - "Access is Denied." I tried running these applications from Windows Explorer and got the message "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."I am logged in as a member of Administrators and have full control over these files. I tried logging in as The built-in Administrator account, with no change. I checked the security settings on the files, and have full control over all of them. I have tried copying the files to different drives, booting in safe mode, and running without antivirus and firewall, all with no change.
Does anybody know what could cause this?
-
ChrisF about 14 yearsThat crossed my mind too, but the way the question is phrased implies that previously the utilities did work. Though, of course, I could be reading more into the question than is really there.
-
xpda about 14 yearsThe utilities used to work and do not now. I have logged in as Administrator, and tried run-as-administrator with no change.
-
xpda about 14 yearsI have full control over ntvdm.exe. I tried Process Monitor, but I don't understand most of the output. There are about 315 items, including 106 errors, that occur when cmd.exe tries to execute d:\util\zip.exe. There are 91 "name not found," 12 "path not found," 2 "no more entries," and a "buffer overflow." I uploaded all of them to xpda.com/tmp.xls . Is this normal?
-
Hugh Allen about 14 yearsOK I've updated my answer (I'm guessing you don't get notified of an edit, hence the comment)
-
xpda about 14 yearsThat's it -- Thanks!!! Out of curiosity, where did you find that in the process monitor output? Also, do you know of any ways that could have been inadvertantly changed?
-
Hugh Allen about 14 yearsOne possible way: did you follow the advice in the last paragraph of this article: news.softpedia.com/news/β¦ ? (note that MS released a patch so there's no longer any reason to disable NTVDM)
-
xpda about 14 yearsNo, I have never intentionally changed any policy settings on this system. I may have to chalk this one up to Gremlins.