chaand
asked on
Dos network communication through NIC
Dear Sir,
I need to send and receive data between two computers connected NIC(ethernet card) through DOS. I will be in dos booting disk, and need the communication.
thanks in advance
chaand
I need to send and receive data between two computers connected NIC(ethernet card) through DOS. I will be in dos booting disk, and need the communication.
thanks in advance
chaand
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if they can see each other you can use net use
command is:
net use [local_drive_name] \\[server]\[directory] [password]
Make sure you have the driver for the NIC loaded.
once you run this command, you can use a regular copy command.
IE:
net use z: \\my_server\c "password"
then
copy z:\*.* c:
command is:
net use [local_drive_name] \\[server]\[directory] [password]
Make sure you have the driver for the NIC loaded.
once you run this command, you can use a regular copy command.
IE:
net use z: \\my_server\c "password"
then
copy z:\*.* c:
ASKER
Sir,
i got ideas about the dos network communication.
first of all the comapatible driver for the nic card must be installed in dos machine and must run the netbios.exe protocol in the system. cross over cable is connecting my two pcs. i got an asm code and its exe and checked in my pcs and it is work
but what i need is the c/c++ source code for communication so as i can modify the code and will be able to perform my actual task.
with luv
chaand
i got ideas about the dos network communication.
first of all the comapatible driver for the nic card must be installed in dos machine and must run the netbios.exe protocol in the system. cross over cable is connecting my two pcs. i got an asm code and its exe and checked in my pcs and it is work
but what i need is the c/c++ source code for communication so as i can modify the code and will be able to perform my actual task.
with luv
chaand
char netuse[] = "net use z: \\server\c pass";
//pass is password.
system(netuse);
that will make the c drive on the server the Z drive on your local machine. It doesn't necessarily have to be a server, it could be the name of your other machine.
IE:
"net use z: \\my_second_computer\c pass"
from there, anything you do to the z: drive will affect the c drive on your second machine.
Best Wishes
//pass is password.
system(netuse);
that will make the c drive on the server the Z drive on your local machine. It doesn't necessarily have to be a server, it could be the name of your other machine.
IE:
"net use z: \\my_second_computer\c pass"
from there, anything you do to the z: drive will affect the c drive on your second machine.
Best Wishes
ASKER
dear ged325
what you send is ok. but i need to run this from pure dos. and i need to run two programs written in c++ to communication. there no sharing of drives is needed. the data send from one machine(through our c++ program) will accept in the second machine(through our c++ program) and then will write the content of the variable into the file.
if you have some idea regarding it please send me
chaand
what you send is ok. but i need to run this from pure dos. and i need to run two programs written in c++ to communication. there no sharing of drives is needed. the data send from one machine(through our c++ program) will accept in the second machine(through our c++ program) and then will write the content of the variable into the file.
if you have some idea regarding it please send me
chaand
ASKER
dear ged325
what you send is ok. but i need to run this from pure dos. and i need to run two programs written in c++ to communication. there no sharing of drives is needed. the data send from one machine(through our c++ program) will accept in the second machine(through our c++ program) and then will write the content of the variable into the file.
if you have some idea regarding it please send me
chaand
what you send is ok. but i need to run this from pure dos. and i need to run two programs written in c++ to communication. there no sharing of drives is needed. the data send from one machine(through our c++ program) will accept in the second machine(through our c++ program) and then will write the content of the variable into the file.
if you have some idea regarding it please send me
chaand
You will need to open a socket then, feeding it the IP address. Do some research on Pipes and sockets. That will help you. Once you compile and have an .exe, as long as you don't include anything out of the ordinary (like windows.h) you should be fine in terms of running.
best wishes
best wishes
ASKER
dear ged325 and all who repond this message,
i got the solution from the url
http://members.tripod.com/~Gavin_Winston/NETBIOS4.HTM
thanks for repaly the massage
with luv
chaand
i got the solution from the url
http://members.tripod.com/~Gavin_Winston/NETBIOS4.HTM
thanks for repaly the massage
with luv
chaand
ASKER
hai all,
dos netwok communication through the NIC card is possible through creating the NETBIOS interface in two dos machines. for that we must run
lsl.com
suitable dos driver for the NIC card
ipxodi.com
netbios.exe
here lsl is link support layer for netbios
ipxodi is the protocol used ipx/spx
netbios is the interface
for more information go through the interrupt 0x5C
bye
chaand
dos netwok communication through the NIC card is possible through creating the NETBIOS interface in two dos machines. for that we must run
lsl.com
suitable dos driver for the NIC card
ipxodi.com
netbios.exe
here lsl is link support layer for netbios
ipxodi is the protocol used ipx/spx
netbios is the interface
for more information go through the interrupt 0x5C
bye
chaand
chaand:
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
This old question needs to be finalized -- accept an answer, split points, or get a refund. For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations! No comment means you don't care.
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: jlindq {http:#8224691}
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Julian Crawford
EE Cleanup Volunteer
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: jlindq {http:#8224691}
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Julian Crawford
EE Cleanup Volunteer
ASKER