DOSkey won't work automatically. What's the deal? My path is set corectly.

qacwac

Senior member
Oct 12, 2000
408
0
0
Okay I am using jdk1.3 downloaded from java.sun.com
I found DOSkey and it is in WINDOWS\COMMAND However it only will work once I type the word "Doskey" into the MS-DOS Prompt. My path is set to

C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.3;C:\JDK1.3\BIN

So what is the deal?

Thanks guys.
 

jaywallen

Golden Member
Sep 24, 2000
1,227
0
0
Forgive me for asking, but, since you didn't specify, how are you trying to load DOSKEY? In AUTOEXEC.BAT, another batch file?

Regards,
Jim
 

qacwac

Senior member
Oct 12, 2000
408
0
0
autoexec.bat

I'm new so maybe that's not right but that's what I was told.

I don't know of anywhere else.
 

AndyHui

Administrator Emeritus<br>Elite Member<br>AT FAQ M
Oct 9, 1999
13,141
17
81
You need to actually start DOSKEY before it works. Specifying a path in Autoexec.bat will not achieve anything.

Include the DOSKEY command in autoexec.bat.

Just add the following line to autoexec.bat:

C:\WINDOWS\COMMAND\DOSKEY.COM
 

jaywallen

Golden Member
Sep 24, 2000
1,227
0
0
qacwac,

Sorry I didn't get back sooner. Funny, I didn't get an email notification about your response (or Andy's) to the thread. It's happened several times in the last couple of days.

Andy, of course, is right. You have to load DOSKEY into memory by running it before you can use it. You can do it in the AUTOEXEC.BAT file, or just run it when you're ready to use it at the MS-DOS Prompt.

Regards,
Jim