//flex table opened by JP

Click to See Complete Forum and Search --> : Help brain **** with autoexec.bat


BC
07-27-1999, 02:25 PM
I have an autoexec.bat file that I am currently having problems with. And it is in the PATH statement.
Here is the file:
@PATHC:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRA~1\MSO FFICE\OFFICE;%PATH%

REM [Header]

REM [CD-ROM Drive]

REM [Miscellaneous]

Path c:\wsql40\;
MODE LPT1:,,P


Now I have 2 path statements. the 1st one is for office. Do I need this one? the 2nd is for a new program I just installed.
Now when I boot up i get cannot find win.com snd it give me a c:
so all I have to do is type cd..windows
and they win to get started again.
If I put a ;C:\windows\
at the end of my second path statement will this fix my problem?

Thanks for the head tums,
BC

cobrien99
07-27-1999, 03:07 PM
Your problem is probably that the path statement is wrong. I haven't seen one like that before. However you can have multiple ones just fine. You can even do goofy things like if-then statements with one program included w/ DOS. Here's what all the paths looked like that I have fooled with.

set path=c:\windows;etc

and for later ones...

set path=%path%;etc...

Chris

DavidX
07-27-1999, 06:34 PM
Change your first path. Remove the '@' and put a space after 'PATH' like this:

PATH C:\WINDOWS;C:\WINDOWS\COMMAND; (etc)

The second path is fine.

800XL
07-27-1999, 09:45 PM
You want the path statement with the %PATH% last or you should just combine both of them into one statement. The setup you have now has the second path statement overwriting the first.

BC
07-28-1999, 10:15 AM
OK I will try thanks all