Computing.Net > Forums > Disk Operating System > set command in autoexec.bat

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.

set command in autoexec.bat

Reply to Message Icon

Name: Chris Ovale
Date: February 11, 2000 at 21:47:28 Pacific
Comment:

I recently upgraded hard drives and did a clean install of the system (win 98).
After re-installing most programs, I edited the autoexec.bat file to add a directory to my path and another to set a dircmd. For some reason, the set command does not work. Even bypassing windows, the path variable does not get reset, nor does the dircmd.
Please help, I have run out of ideas for a fix.



Sponsored Link
Ads by Google

Response Number 1
Name: Igor M
Date: February 11, 2000 at 23:15:17 Pacific
Reply:

Hi,

Not sure about dircmd, but PATH command always works under Win95/98. Are you sure you make it correct? If you still have this problem post your Autoexec.bat here and maybe we can help.

Good luck, Igor


0

Response Number 2
Name: Outsider
Date: February 12, 2000 at 08:10:23 Pacific
Reply:

Use the PATH command to set the path,
not the SET command.


0

Response Number 3
Name: Chris Ovale
Date: February 18, 2000 at 13:24:28 Pacific
Reply:

(I would have posted earlier, but school came first)

Since you asked, my autoexec.bat file, w/o all the REM's is:

@C:\PROGRA~1\NORTON~1\NORTON~2\NAVDX.exe /Startup
@ECHO OFF
SET DJGPP = C:\DJGPP\DJGPP.ENV
SET PATH = C:\DJGPP\BIN; %PATH%
SET DIRCMD = /o /p /w
SET BLASTER=A220 I5 D1 T4

IT is actually the same autoexec.bat that I had used before upgrading the hard-drive. I get the feeling that the manufacturer of my computer (e-machines) is behind this, but I can't figure out where, and they don't want to return my tech-support request (which is fine by me, I don't like tech-support anyway).

The weird part about it is that I did a selective boot, loading only the four set commands (no config.sys or windows) and the smae thing happened. Does some other file load befor autoexec.bat that can change these settings.

Oh, and I know that the PATH command works but the two lines about DJGPP come directly from the developer of the software, and they worked for me before, but not now.


0

Response Number 4
Name: Chris Ovale
Date: February 22, 2000 at 10:08:07 Pacific
Reply:

I accidently fixed the problem myself, apparently, the set command does not like spaces. The proper autoexec.bat file should read :

@C:\PROGRA~1\NORTON~1\NORTON~2\NAVDX.exe /Startup
@ECHO OFF
SET DJGPP=C:\DJGPP\DJGPP.ENV
SET PATH=C:\DJGPP\BIN;%PATH%
SET DIRCMD=/o/p/w
SET BLASTER=A220 I5 D1 T4

I am not sure if I needed to take out the spaces in the dircmd string, but why take the chance. It finally works!
Thanks for the help, anyway.

Chris


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: set command in autoexec.bat

Changing video mode in autoexec.bat www.computing.net/answers/dos/changing-video-mode-in-autoexecbat/4763.html

LPT1 to FILE in DOS autoexec.bat www.computing.net/answers/dos/lpt1-to-file-in-dos-autoexecbat/10696.html

CD-rom in DOS www.computing.net/answers/dos/cdrom-in-dos/970.html