V
VanguardLH
Guest
When I run cmd.exe from Start->Run, it defaults to my %userprofile%
path. If I start cmd.exe using a shortcut, I get the C:\Windows path
(%windir%) as the current drive and path (unless I change the "Start
in" property in the shortcut). What path I get is not important
UNLESS it is C:\ and only if that path. Below are examples of when
notepad.exe runs and when it generates an error popup (the current
path is shown before the ">" delimiter):
Errors for:
C:\ > notepad.exe
No error for:
C:\ > \windows\system32\notepad.exe
C:\Temp > notepad.exe
C:\Program Files > notepad.exe
D:\ > notepad.exe
If and only if the current path is C:\ and I only specify the filename
(i.e., no path) for notepad.exe, I get the following error:
16 bit MS-DOS Subsystem
Command Prompt - notepad.exe mytasks.txt
The NTVDM CPU has encountered an illegal instruction.
CS:0de0 IP:03f4 OP:63 6f 6d 4c 61 Choose 'Close' to terminate the
application.
The CPU registry values are of no value. What is peculiar is that
this command (with no path) works if I set the current path to
*anything* other than C:\. The C:\Windows\System32 path is included
in the PATH environment variable so notepad.exe can be found
regardless of which directory I am in, and the error still shows that
notepad.exe is being found.
Weird. I've tested with some other .exe GUI'ed programs that are
under C:\Windows\System32 (and which is in the PATH environment
variable) with the current path at C:\, like winmine.exe, write.exe,
and mmc.exe, and they don't have a problem. Just notepad.exe, so far,
doesn't want to load if the current path is C:\ and only if it is that
path.
I don't have this problem inside a virtual machine in VMWare Server
running a clean install of Windows XP Pro SP-2 (fully updated) as the
guest OS. So the problem appears related to setup of my host OS (also
Windows XP Pro SP-2).
path. If I start cmd.exe using a shortcut, I get the C:\Windows path
(%windir%) as the current drive and path (unless I change the "Start
in" property in the shortcut). What path I get is not important
UNLESS it is C:\ and only if that path. Below are examples of when
notepad.exe runs and when it generates an error popup (the current
path is shown before the ">" delimiter):
Errors for:
C:\ > notepad.exe
No error for:
C:\ > \windows\system32\notepad.exe
C:\Temp > notepad.exe
C:\Program Files > notepad.exe
D:\ > notepad.exe
If and only if the current path is C:\ and I only specify the filename
(i.e., no path) for notepad.exe, I get the following error:
16 bit MS-DOS Subsystem
Command Prompt - notepad.exe mytasks.txt
The NTVDM CPU has encountered an illegal instruction.
CS:0de0 IP:03f4 OP:63 6f 6d 4c 61 Choose 'Close' to terminate the
application.
The CPU registry values are of no value. What is peculiar is that
this command (with no path) works if I set the current path to
*anything* other than C:\. The C:\Windows\System32 path is included
in the PATH environment variable so notepad.exe can be found
regardless of which directory I am in, and the error still shows that
notepad.exe is being found.
Weird. I've tested with some other .exe GUI'ed programs that are
under C:\Windows\System32 (and which is in the PATH environment
variable) with the current path at C:\, like winmine.exe, write.exe,
and mmc.exe, and they don't have a problem. Just notepad.exe, so far,
doesn't want to load if the current path is C:\ and only if it is that
path.
I don't have this problem inside a virtual machine in VMWare Server
running a clean install of Windows XP Pro SP-2 (fully updated) as the
guest OS. So the problem appears related to setup of my host OS (also
Windows XP Pro SP-2).