doskey doesn't work; PATH only sets after first Java compile; then resets to old PATH

J

joe

Windows XP Pro SP2
-----------------------

DOSKEY issue:
'doskey' seems to run but after that it doesn't have any history of my
commands at the CMD prompt

PATH issue:
I am trying to program in Java and I need both the PATH to remain as I set
it in Computer Management ( it remains set in the window to the JDK bin but
in the CMD window I can use 'javac' only once and then PATH reverts to the
old value - very weird)
 
J

joe

I discovered the problem with the PATH variable changing after every use of
the DOS editor. Back when I installed Java I put it in the default directory
and then changed the path by editting the AUTOEXEC.NT file. Time passed and
I had to delete all the old versions, and re-install the latest version, of
Java. This last time I edited the PATH variable via the Computer Manager and
forgot about the AUTOEXEC.NT file. Thus after using the DOS editor the .NT
file definition went into use.

So I editted the .NT file and Java works.
 
J

joe

I did a search for "doskey doesn't work" in google and the first hit was a
"windowspro.com" site with numerous users posting the same problem. One
amazing person knew the answer. "DOSKEY.EXE" does not work when you oopen a
DOS window using "COMMAND.COM" it only works when you use "CMD.EXE" I tried
it and DOSKEY is now working.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top