Computer Hope
Microsoft => Microsoft DOS => Topic started by: nitsudm on March 25, 2009, 01:01:38 AM
-
I'm running ms-dos 6.22 and nothing else. I have two 2gb FAT partions labed c: (the active drive) and d:
ALL the files that need to be accessed are on the d:\ drive - the c:\ is empty.
I did not write the batch files on the boot disk and cannot fully understand them in a timely manner.
Would someone please check and or alter these batch files so that they work with my current configuration? I will obviously be booting
to a 1.44mb floppy on the a:\ and then need the batch files to load files, drivers, and paths from the d:\ and only the the d:\.
Here's the autoexec.bat
@ECHO OFF
LH /L:0;1,45488 /S \SMARTDRV.EXE /X
LH /L:1,13984 \share
PROMPT $P$G
set clipper=f085
PATH \;D:\DOS;
SET COMSPEC=\COMMAND.COM
LH /L:0;1,50304 /S COMMAND /E:1024 /C\LANTASTI\STARTNET.BAT
path=d:\vss;%path%
D:\lantasti\net clock \\master
SET VSSTERM=2
D:
m
And here is the config.sys file
DEVICE=\HIMEM.SYS
DEVICE=\EMM386.EXE NOEMS novcpi /i=e000-efff
BUFFERS=50,50
FILES=199
DOS=HIGH,UMB
LASTDRIVE=E
FCBS=16,8
SHELL=\COMMAND.COM /P /E:1024
STACKS=9,256
DEVICE=\LANTASTI\PROTMAN.DOS /I:\LANTASTI
device=\lantasti\pnpnd.dos
rem DEVICEHIGH /L:1,17904 =\LANTASTI\ELNK3.DOS
rem devicehigh=\lantasti\epro.dos
rem devicehigh=\lantasti\nh2000.dos
I know that the file names and sub directories are correct, but I don't know where a switch ends and a drive letter begins. Also I don't know how the computer these came from was configured because that pc is currently not working. I would really appreciate a response to this because I need to get this computer working again as fast as possible because it is for a Point of Sale program running in MS-DOS that I use at my business. Thank you
-
There are letters in this code that i'm confused about. I can see the d:\ located throughout the code which of course is what I want, but in the config.sys file for instance, I see other things that look like drive letters such as E, I:, L:, and LASTDRIVE=E - Are those referring to drives or something else. If everything that has to do with these batch files is on my D:\ drive, shouldn't they all be changed to d:\ or which ones should be - please help....thanks
-
Welcome to the CH forums.
ALL the files that need to be accessed are on the d:\ drive - the c:\ is empty.
Seems to me that the setup on your hard drive is wrong. MS-Dos 6.22 should be installed in the C: partition in order to boot. Running MS-Dos from a floppy drive will not lead to any reasonable performance.
Suggest you format C: then SYS C: and boot from the hard drive.
There are no problems with your Autoexec.bat and Config.sys files provided the files mentioned are in the D: partition. The "drive letters" you mention E:, I: and L: are in fact parameters (aka switches) used in setting up the system.
Further info on the MS-Dos Autoexec.bat and Config.sys can be found here (http://madsenworld.dk/con_auto/index-uk.htm) and further info if needed might be found in this (http://www.google.com/search?hl=en&q=dos+6.22+autoexec.bat&btnG=Google+Search&aq=f&oq=) selection.
Only you know how you want to set up your system so only you can edit/modify Autoexec.bat and Config.sys.
Good luck.
-
Running MS-Dos from a floppy drive will not lead to any reasonable performance.
You'll hear the drive seek every time you need COMMAND.COM. Just like the early 1980s.
-
Well, I am having a hard time finding the ms-dos installation disks, and apparently you still can't download a full version of an out of date ms-dos. Does anyone here have a copy they can e-mail me?
[email protected]
Thanks for the help
email addy removed to prevent SPAM
-
Does anyone here have a copy they can e-mail me?
That would be illegal. Look on Ebay.
Posting email address is against forum rules.
-
hmmm...I have all the files in a dos folder from the original system disk before my problem came up- just can't find the setup disks. I wonder if I can just transfer system files to c:\ and then copy the dos files over to c:\? Does anyone have a snapshot of the directory of a system disk and dos as a reference to how it's supposed to look when properly installed? or would this be illegal too? - Sorry about the e-mail address - I didn't know (I should read the terms of use). I initially made a full hard disk copy of the original system disk with ms-dos 6.22 installed after a power failure messed everything up. If I transfer system files to a formatted disk labled C:\ then transfer all files from the other disk (with dos and my dos based app and files) could that work? would it still boot to disk and load dos, or is this out of my control? thank you
-
hmmm...I have all the files in a dos folder from the original system disk before my problem came up- just can't find the setup disks. I wonder if I can just transfer system files to c:\ and then copy the dos files over to c:\?
Yes, you can do this. I was going to suggest this just now before I read your post.
Assuming you have your DOS files on D: I don't see why you should not just boot from the floppy,
then do
format c: /s
sys c:
copy d:\*.* c:\
md c:\dos
copy d:\dos\*.* c:\dos
Repeat the last step for each directory on D:
Finally copy config.sys and autoexec.bat and edit paths to reflect the fact that d: is now c:
-
Finally copy config.sys and autoexec.bat and edit paths to reflect the fact that d: is now c:
I assume you mean the autoexec.bat and configs.sys that I started this topic with? If so, and the files referred to in the batch and config are still on d:\ am I still changing paths?
In autoexec.bat -
PATH \;D:\DOS;
is that what you are referring to?
or is there more - thanks
-
I assume you mean the autoexec.bat and configs.sys that I started this topic with? If so, and the files referred to in the batch and config are still on d:\ am I still changing paths?
In autoexec.bat -
PATH \;D:\DOS;
is that what you are referring to?
or is there more - thanks
change it to
PATH C:\; C:\DOS;
-
And the config.sys
DEVICE=\HIMEM.SYS
DEVICE=\EMM386.EXE NOEMS novcpi /i=e000-efff
BUFFERS=50,50
FILES=199
DOS=HIGH,UMB
LASTDRIVE=E
FCBS=16,8
SHELL=\COMMAND.COM /P /E:1024
STACKS=9,256
DEVICE=\LANTASTI\PROTMAN.DOS /I:\LANTASTI
device=\lantasti\pnpnd.dos
rem DEVICEHIGH /L:1,17904 =\LANTASTI\ELNK3.DOS
rem devicehigh=\lantasti\epro.dos
rem devicehigh=\lantasti\nh2000.dos
Does anything need to be changed to c:\ here?
-
Have you tried running the system off your boot disk? It looks like it might very well work just as it is. I suggest you make plenty of spare copies of the floppy disk.
-
I have found no problems in running MS-Dos 6.22 with all external commands and other programs installed on the D: partition. It seems that you might have everything you need in the D:\DOS\ directory already.
-
It seems to be working pretty well the way it is - with the exception of a couple errors in reference to the lantasti drivers in line 11 and 12 of the config.sys (bad or missing and file not found - something I think I'll have to work on by myself
This is what I get when booting to hard disk with my autoexec.bat and config.sys -
Himem testing memory done
bad or missing \lantasti\protman.dos
error in config.sys line 11
bad or missing \lantasti\pnpnd.dos
error in config.sys line 12
file not found
file not found
too many parameters
bad command or file name
error
error redir must be installed
at the end of the autoexec.bat at line 13 where it says "m" it loads the menu for my program - the menu comes up in dos and instead of giving me a prompt that says d:\vss it gives me an error as follows:\
invalid command.com
cannot load command
system halted
and then it freezes and I have to soft boot to restart
In response to Dusty's reply
I have found no problems in running MS-Dos 6.22 with all external commands and other programs installed on the D: partition. It seems that you might have everything you need in the D:\DOS\ directory already.
The disk is exactly identical as it was before the power failure with the exeption to the mbr? and the fact that I have not transferred system files to d:\
If I formated d: and transferred sys files then copy original contents to d: and apply autoexec.bat and config to the root of d: would that work? thanks a lot
-
If I formated d: and transferred sys files then copy original contents to d: and apply autoexec.bat and config to the root of d: would that work?
Sorry, can't answer that, I have never tried booting MS-Dos from a hard drive on any partition other than C:
-
Sorry, can't answer that, I have never tried booting MS-Dos from a hard drive on any partition other than C:
You can boot MS DOS from a removable disk or the first partition of your primary hard drive. That's it.
-
ok - that's what I thought
-
if I have an a:, c:, and a d: drive shouldn't the LASTDRIVE=D rather than E in the config.sys - does that even make a difference?
-
if I have an a:, c:, and a d: drive shouldn't the LASTDRIVE=D rather than E in the config.sys - does that even make a difference?
If you are connected to a network there may be a network drive letter needed. When DOS was king, PCs didn't have much memory, and every kilobyte was precious. If you don't specify a LASTDRIVE= line in your CONFIG.SYS, MS-DOS sets the last drive to Z by default. Each letter uses 96 bytes of conventional memory so excluding the letters F to Z will save 2016 bytes. It probably wouldn't make a lot of difference to leave it out altogether. You can always experiment.
-
Also if I have changed the location of dos to c: then it seems like line 8 in autoexec.bat is wrong or I should probably try moving lantasti folder to c: drive?
@ECHO OFF
LH /L:0;1,45488 /S \SMARTDRV.EXE /X
LH /L:1,13984 \share
PROMPT $P$G
set clipper=f085
PATH C:\; C:\DOS;
SET COMSPEC=\COMMAND.COM
LH /L:0;1,50304 /S COMMAND /E:1024 /C\LANTASTI\STARTNET.BAT
path=d:\vss;%path%
D:\lantasti\net clock \\master
SET VSSTERM=2
D:
m
Same thing with config.sys line 10 - 14
DEVICE=\HIMEM.SYS
DEVICE=\EMM386.EXE NOEMS novcpi /i=e000-efff
BUFFERS=50,50
FILES=199
DOS=HIGH,UMB
LASTDRIVE=E
FCBS=16,8
SHELL=\COMMAND.COM /P /E:1024
STACKS=9,256
DEVICE=\LANTASTI\PROTMAN.DOS /I:\LANTASTI
device=\lantasti\pnpnd.dos
rem DEVICEHIGH /L:1,17904 =\LANTASTI\ELNK3.DOS
rem devicehigh=\lantasti\epro.dos
rem devicehigh=\lantasti\nh2000.dos
Either the those paths need to be changed or I need to move the "lantasti" folder to c:
Thanks for the help :)
-
I should probably try moving lantasti folder to c: drive?
Yes
Same thing with config.sys line 10 - 14
Yes
Either the those paths need to be changed or I need to move the "lantasti" folder to c:
Either. Easier to move it to C:
-
awesome - ok, I'll try that when I get over there in a bit - thank you very much
I'll let you know later how it works out
-
REM - Allows you to place remarks into the batch file without displaying or executing that line when the batch file is run.
With that in mind am I to expect that these 3 lines at the end of the config.sys are not being executed?
rem DEVICEHIGH /L:1,17904 =\LANTASTI\ELNK3.DOS
rem devicehigh=\lantasti\epro.dos
rem devicehigh=\lantasti\nh2000.dos
the two lines prior to that looks to me to be loading drivers for the NIC:
DEVICE=\LANTASTI\PROTMAN.DOS /I:\LANTASTI
device=\lantasti\pnpnd.dos
When I boot to harddrive himem.sys loads but during startnet.bat (I am to believe at this point) It says:
Loading Network ISA PnP driver ..........
No Network ISA PnP dapter Found!
Driver Not Loaded.
And that last messege is from the PNPND.DOS File
I am going to double check that I have all the right files where they should be - but if someone could help clarify the stuff above it would be very helpful - thank you
-
With that in mind am I to expect that these 3 lines at the end of the config.sys are not being executed?
rem DEVICEHIGH /L:1,17904 =\LANTASTI\ELNK3.DOS
rem devicehigh=\lantasti\epro.dos
rem devicehigh=\lantasti\nh2000.dos
That is correct. They will not be executed.
the two lines prior to that looks to me to be loading drivers for the NIC:
DEVICE=\LANTASTI\PROTMAN.DOS /I:\LANTASTI
device=\lantasti\pnpnd.dos
When I boot to harddrive himem.sys loads but during startnet.bat (I am to believe at this point) It says:
Loading Network ISA PnP driver ..........
No Network ISA PnP dapter Found!
Driver Not Loaded.
And that last messege is from the PNPND.DOS File
Looks like the driver loaded in startnet.bat is not finding a network adapter (network card). I presume there is one installed?
-
there is a network adapter installed in a pci slot and hasn't been moved since this all worked - there is nothing on the NIC to suggest who makes it - just a serial #5200pxa37ab0315975
-
Startnet.bat:
@echo off
rem LANtastic Version 6.00 installed 95/12/00 16:06:19
rem (for DOS)
a:
cd c:\LANTASTI
SET LAN_CFG=c:\LANTASTI
rem If LANtastic is disabled, skip everything.
IF EXIST DISABLED GOTO :STARTNET_DONE
@echo ===== Begin LANtastic configuration =====
PATH c:\LANTASTI;%PATH%
rem LOADHIGH AI-NDIS BIND_TO=ELNK3_NIF
rem LOADHIGH AI-NDIS BIND_TO=EPRO_NIF
rem LOADHIGH AI-NDIS BIND_TO=NH2000_NIF
LOADHIGH AI-NDIS BIND_TO=RTL8019_NIF
AILANBIO @STARTNET.CFG
REDIR node1 @STARTNET.CFG
rem If CONNECT.BAT exists, run it to set up connections.
IF EXIST CONNECT.BAT GOTO :CONNECT
rem Otherwise set up connections specified during install.
NET LOGIN/wait \\MASTER
NET USE D: \\MASTER\C-DRIVE
NET LPT TIMEOUT 10
GOTO :CONNECT_DONE
:CONNECT
@echo Setting up LANtastic connections from CONNECT.BAT
rem Build CONNECT.BAT like this: "NET SHOW/BATCH > c:\LANTASTI\CONNECT.BAT"
rem (or run the batch file SETNET.BAT)
call CONNECT.BAT
:CONNECT_DONE
NET POSTBOX
@echo ===== End LANtastic configuration =====
:STARTNET_DONE
cd \
-
Loading Network ISA PnP driver ..........
No Network ISA PnP dapter Found!
Driver Not Loaded.
I can't see any of these messages in startnet.bat
The whole thing works if you boot off the floppy?
-
no doesn't run off of a floppy - and it didn't prior to this.
I can't see any of these messages in startnet.bat
That message comes from the pnpnd.dos file
I would post the contents of the pnpnd.dos but it is too large to properly display on this page...
Is there a way I can attach the file so you can view it in notepad? It does seem important
Also, in the startnet.bat does this look like it's to load the adapter driver? :
LOADHIGH AI-NDIS BIND_TO=RTL8019_NIF
or not? This (RTL8019_nif) is referenced in the pnpnd.dos file
-
no doesn't run off of a floppy - and it didn't prior to this.
You wrote this:
I did not write the batch files on the boot disk and cannot fully understand them in a timely manner.
Would someone please check and or alter these batch files so that they work with my current configuration? I will obviously be booting to a 1.44mb floppy on the a:\
That message comes from the pnpnd.dos file
I would post the contents of the pnpnd.dos but it is too large to properly display on this page...
Is there a way I can attach the file so you can view it in notepad? It does seem important
You can upload a text file. In the posting window, click Additional Options.
Also, in the startnet.bat does this look like it's to load the adapter driver? :
LOADHIGH AI-NDIS BIND_TO=RTL8019_NIF
or not?
Yes.
-
Here is the rtl8019_nif file:
Model = ISA Plug & Plays
Path = ..\..\NDIS
DeviceDriver = PNPND.DOS
DeviceName = PNPND
Type = NDIS
XPorts = NETBEUI
And the pnpnd.dos is attached
[attachment deleted by admin]
-
Ok, so I think I have most of this figured out here :-\ all but one line I think? I've loaded the driver for the ethernet card but when I get past the startnet.bat - (I think) and I receive an error that: "Lantastic Redirector (REDIR) must be installed". If I place the redir.exe somewhere in the autoexec.bat I get the error: "Netbios is not present". What should I do with the redirector? Here's the config.sys, autoexec.bat, startnet.bat,
Here is the Config.sys and it all seems to work:
DEVICE=C:\DOS\HIMEM.SYS
DEVICE=C:\DOS\EMM386.EXE NOEMS novcpi /i=e000-efff
DEVICE=C:\DOS\SETVER.EXE
device=c:\lantasti\protman.dos /I:C:\lantasti
device=c:\lantasti\pcind.dos
DOS=UMB,HIGH
BUFFERS=40
FILES=199
LASTDRIVE=Z
FCBS=4,0
SHELL=C:\COMMAND.COM /P /E:1024
STACKS=9,256
[COMMON]
And here's the Autoexec.bat:
@ECHO OFF
LH /L:0;1,45488 /S c:\dos\SMARTDRV.EXE /X
LH /L:1,13984 c:\dos\share
PROMPT $P$G
set clipper=f085
PATH \;C:\DOS;
SET COMSPEC=c:\COMMAND.COM
LH /L:0;1,50304 /S COMMAND /E:1024 /C\LANTASTI\STARTNET.BAT
C:\LANTASTI\REDIR.EXE
path=d:\vss;%path%
d:\lantasti\net clock \\master
SET VSSTERM=2
D:
And here is the Startnet.bat:
@echo off
rem LANtastic Version 6.00 installed 95/12/00 14:45:58
rem (for DOS)
C:
cd C:\LANTASTI
SET LAN_CFG=C:\LANTASTI
rem If LANtastic is disabled, skip everything.
IF EXIST DISABLED GOTO :STARTNET_DONE
@echo ===== Begin LANtastic configuration =====
PATH C:\LANTASTI;%PATH%
SET LAN_DIR=C:\LANTASTI.NET
LOADHIGH AI-NDIS BIND_TO=PCIND_NIF
AILANBIO @STARTNET.CFG
REDIR MASTER @STARTNET.CFG
IF EXIST NOSHARE GOTO :NOSHARE
SERVER C:\LANTASTI.NET @STARTNET.CFG
NET LOGIN \\MASTER
GOTO :CONTINUE
:NOSHARE
@echo LANtastic server was installed but turned off.
:CONTINUE
rem If CONNECT.BAT exists, run it to set up connections.
IF EXIST CONNECT.BAT GOTO :CONNECT
rem Otherwise set up connections specified during install.
net use d: \\master\c-drive
NET USE LPT1: \\MASTER\@PRINTER
NET LPT TIMEOUT 10
GOTO :CONNECT_DONE
:CONNECT
@echo Setting up LANtastic connections from CONNECT.BAT
rem Build CONNECT.BAT like this: "NET SHOW/BATCH > C:\LANTASTI\CONNECT.BAT"
rem (or run the batch file SETNET.BAT)
call CONNECT.BAT
:CONNECT_DONE
NET POSTBOX
@echo ===== End LANtastic configuration =====
:STARTNET_DONE
cd \
And when I boot up I F8 and do it line by line and I get this below:
Starting MS-Dos...
MS-DOS will prompt you to confirm each Config.sys command.
DOS=UMB,HIGH [Y,N]?Y
DEVICE=C:\DOS\HIMEM.SYS [Y,N]?Y
HIMEM is testing extended memory...done.
DEVICE=C:\DOS\EMM386.EXE NOEMS NOVCPI /I=E000-EFFF [Y,N]?Y
DEVICE=C:\DOS\SETVER.EXE [Y,N]?Y
DEVICE=C:\LANTASTI\PROTMAN.DOS /I:C:\LANTASTI [Y,N]?Y
MS DOS LAN Manager Protocol Manager v2.0
DEVICE=C:LANTASTI\PCIND.DOS [Y,N]?Y
Loading PCIND.DOS..........
RTL8029 driver (V5.0) is installed
BUFFERS=40 [Y,N]?Y
FLIES=199 [Y,N]?Y
LASTDRIVE=Z [Y,N]?Y
FCBS=4,0 [Y,N]?Y
SHELL=C:\COMMAND.COM /P /E:1024 [Y,N]?Y
STACKS=9,256 [Y,N]?Y
Process AUTOEXEC.BAT [Y,N]?Y
ECHO OFF [Y,N]?Y
LH /L:0;1,45488 /S c:\dos\SMARTDRV.EXE /X [Y,N]?Y
LH /L:1,13984 c:\dos\share [Y,N]?Y
PROMPT $P$G [Y,N]?Y
set clipper=f085 [Y,N]?Y
PATH \;C:\DOS; [Y,N]?Y
SET COMSPEC=c:\COMMAND.COM [Y,N]?Y
LH /L:0;1,50304 /S COMMAND /E:1024 /C\LANTASTI\STARTNET.BAT [Y,N]?Y
C:\LANTASTI\REDIR.EXE [Y,N]?Y
LANtastic (R) Redirector V6.00/AI - (C) Copyright 1994 ARTISOFT Inc.
Serial Number FCA-122234 - 1 node license.
ERROR: NETBIOS is not present
path=d:\vss;\;D:\DOS; [Y,N]?Y
d:\lantasti\net clock \\master [Y,N]?Y
ERROR: LANtastic (R) Redirector (REDIR) must be installed
SET VSSTERM=2 [Y,N]?Y
D: [Y,N]?Y
D:\>
Can any one see what is wrong here? I want this computer (Acually the D: drive) to be shared by two terminals and I want this computer to be named MASTER. I don't understand the "redir" or the netbios part of this. Sorry this is so long but I feel like i'm really close. Thanks a lot
-
Anyone have any information on the Netbios setup in ms-dos 6.22? as above? :)
Also on line 10 of the autoexec.bat I have:
path=d:\vss;%path%
and when that runs in dos prompt it turns into:
path=d:\vss;\;D:\DOS;
why does it do that?