The method of _dos/bat network under DOS

Source: Internet
Author: User
Tags net command port number

With the popularization of computers and networks, networking operations between computers (such as file transmission, chatting, etc.) and internet networks are becoming more and more important. Since DOS has so many users, how can you use it to achieve networking? Dr-dos 7.xx and Rom-dos 7.xx are self-contained (including LAN and TCP/IP protocols), but none of our commonly used MS-DOS. However, there is not no way, just need some additional software. Compared with NetWare Lite 1.x and Microsoft Network Client 3.0, which can be downloaded from the Web tools of this site, the following is an example of Microsoft Network Client 3.0, which describes how to implement a LAN. For more information on how to connect to a DOS Internet connection, see below.

First install Microsoft Network Client 3.0 (msclient) on a computer that requires networking, enter your own workgroup, computer name and IP address, and user name and password in the installation, and select the model number of the installed network adapter in the list. If your network card is not in the list, you will need a driver with your network card, usually on a floppy disk or on a CD. When it prompts for an OEM disk, you insert the driver disk for the NIC and enter the appropriate path. Because each network system needs the NIC driver to be dissimilar, but for MSClient generally selects the NDIS2 or the MSClient folder in the drive disk, like a:\ MSClient. As long as it is correct, it will be installed automatically. As for the network protocol, generally as long as the NetBEUI and TCP/IP protocol is enough, too much will slow down the speed of the network. After the installation is complete, MSClient automatically puts the network boot command into the Autoexec.bat, and then restarts the computer and finds that the network is automatically started. When prompted to enter the username and password, enter just set it. At this point, the network is running, such as you want to see all the computers under the current workgroup, you can enter the net view command.

However, at this time everyone is still a client, there is no server, you must install the server before you can share files. After installation, you can set up shared paths using the NetShare command, such as set D to share, and if necessary, set a password to avoid illegal access. Once the server and the share are set up, the client can access resources on that computer. For example, the NET use E: \\PC\C command redirects a drive (or folder) with the share name C on a computer with the name PC to the E disk, where the contents of the remote computer are accessed as if it were a local computer. However, it is important to open the MSClient file and Printer sharing settings by opening the SYSTEM in the MSClient folder using a text editor such as edit. INI, change the values of the filesharing and printsharing in the [network] entry to Yes, and you can use the file and Printer sharing functionality after saving and exiting.

It is also perfectly possible to connect a computer that uses DOS with Windows. Because Windows 3.11 for Workgroups,windows 9x and Windows NT/2K/XP use a network called Microsoft Windows Network, and Microsoft in DOS Network Client 3.0 is compatible, so they can be accessed very well between each other, like DOS and DOS, or a network between Windows and Windows. Note, however, that if you want to use a DOS computer to access a computer that uses Windows NT/2K/XP, you must set up a DOS computer's user account in Windows NT/2K/XP or you will not be able to access it.

Microsoft Network Client 3.0 has many very useful commands, such as Ping, and if you want to know these commands and their usage, see the DOS articles section.

In addition to using MSClient, you can also use tools such as NetWare for networking. In the case of NetWare Lite, the Startnet.bat can be automatically transferred to the peer network (including the server) after the installation is done directly. At this time, it can be used with its own NET command for Full-screen network management, or command-line, such as the Net MAP command can be redirected to each other's computer (of course, you need to set the share first). The simpler approach is to use the ipxcopy directly after loading the IPX protocol (ipxodi.com). EXE command (which can be downloaded in "DOS software") for file transfer without starting the server. The method is to start the receiver with the ipxcopy command on one computer and transfer with the Ipxcopy file name command on another computer, where the file name can be a wildcard character or the/s option to specify the files included in the subfolder. There are other ways, of course, that are not introduced here.

The above is about the LAN connection method, the following talk about the Internet method. There are usually two ways of surfing the Internet, one is dial-up, that is, through the modem, the other is through the network card. For  ISDN,ADSL, the method is similar to using a normal network card to surf the internet. Therefore, the method of Internet is divided into two kinds. First of all, using a network card to the Internet, usually the NIC driver with a driver called packet driver, usually in the drive disk Pktdrv folder, it is a DOS connection to the Internet's most critical network interface driver, most DOS under the   Internet programs need to have it to achieve the function of the Internet (if the packet driver is not found in the NIC driver disk, you can find it on http: //www.crynwr.com/). For example, if your network card is NE2000, you can use the ne2000.com in the Pktdrv folder of the drive disk to drive the   network card, just enter NE2000 on the command line. However, some network adapter packet drivers need to enter the installed IO address, usually 0x60 (that is, decimal 98), that is, the   line ne2000 0x60 command to install the driver. If you do not enter an address, the general NIC is installed on the 0x60 or 0x62 by default. If you are using dial-up Internet, there are two ways to use the packet driver for the   modem, and the other is to use its own dialer when using the browser. For the former, you can use a program called LSPPP (can be downloaded in the "Drive   order" of this site), its function is very powerful, command line parameters are also more, you can use lsppp /command view. Usually the parameters you need to specify are the port number where the modem is located, the phone number to dial, the username, and the password, for example, assuming that the modem is on the COM4 and that the number to dial is  163, you can enter lsppp /n:4 /d at the DOS command line : 163 /u:user /p:pwd to achieve the Internet (be sure to pay attention to the case and the space between the parameters). Once the NIC's packet driver or LSPPP is successfully running, the DOS system is actually connected to the  internet, at which point, all kinds of DOS Internet software can directly access the network (of course, to really complete the Internet's function, Also requires the network program with the  TCP/IP protocol.   If you want to disconnect interne after loading the packet driver for the NIC or modemT, both can be used to reverse the installation of the packet driver, such as the implementation of the Ne2000 -u command, you can also use a generic packet driver termination termin (can be downloaded in the Web site tools), For example, if the packet driver installation address is 0x60, use termin 0x60 on it.   If you want to use the browser's own dialer instead of the modem's packet driver to surf the Internet, you can look at the use of the Arachne below.  

As you know, you need a Web browser to browse the Web. DOS the best graphic way of the browser is Arachne, the function is very powerful, can be downloaded in this site. Using it for dial-up networking requires a DOS-enabled modem (including a hardware-modulated demodulator or a software modem with a DOS driver, which can also be used in a Win9x dos window), and then select "Use modem Internet access" in the Settings screen. Arachne detects each possible port on the modem, and can be used if one is successfully detected. Then enter the correct phone number, username and password, you can dial. Of course, if you've already loaded the modem's packet driver with the LSPPP described above, you won't have to dial the Arachne again. At this point, set the Arachne method and set the Arachne using the network card packet the same way the Internet. If it is through the network card to the Internet, you need to run the above mentioned packet driver, note must be installed on the address 0x60, or Arachne unrecognized. In the Settings screen in Arachne select "Use network card", and select DHCP automatic configuration, as long as the network is normal, you can view the Web page. To speed up, you can load a DOS disk buffer smartdrv before running the Arachne browser. Exe. On the specific use of Arachne browser, the "DOS article" column.

Of course, the real use of the Internet in DOS there are many ways, such as using a modem or network card packet driver, with the WATTCP program (such as Wget,lynx) can be achieved online data reading, such as in the DOS command line with wget www.yahoo.com command can be yahoo site home page download down, wget even support the continuation of the breakpoint function. To use e-mail, use Barebones e-mail and other programs can easily implement e-mail (need to know the mailbox POP3 and SMTP server address). For FTP and Telnet, and so on, you can also use the appropriate program to achieve, such as wattcp FTP, specific in the site's "Network Tools" to see. DOS under the network of a lot of procedures, here is no longer detailed.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.