It's quite challenging, involving network, programming, DOS, Windows, hope experts can give more guidance...
Network situation:
Within the local area network, there is a data server, on which there is an HP printer, and there is another printer in the network (this printer has an IP address, and the network cable is directly connected to it).
My process:
Use VC to give the user an interface, let the user select the plt file to be printed, and I get the path.
First map the folder of the data server to the local z:
net use z: \\server\data
Then copy z:\*.plt \\computer name\printer name
Problem:
1. I need to type copy *.plt \\computer name\printer name under DOS. But how can I make the user not care about this under Windows (because the HP printer is the default printer in the control panel), and how does my program know the location of the printer (\\computer name\printer name)? Can this be done?
Or like this: give the user an interface to select the printer, and get the printer address from it. How to write this...
2. For the network printer with an IP address (don't know how to call it, this printer is directly connected to the network and has an IP address), how should I print the plt file? Is the method of copy *.plt \\computer name feasible? And how to get this IP address...
Network situation:
Within the local area network, there is a data server, on which there is an HP printer, and there is another printer in the network (this printer has an IP address, and the network cable is directly connected to it).
My process:
Use VC to give the user an interface, let the user select the plt file to be printed, and I get the path.
First map the folder of the data server to the local z:
net use z: \\server\data
Then copy z:\*.plt \\computer name\printer name
Problem:
1. I need to type copy *.plt \\computer name\printer name under DOS. But how can I make the user not care about this under Windows (because the HP printer is the default printer in the control panel), and how does my program know the location of the printer (\\computer name\printer name)? Can this be done?
Or like this: give the user an interface to select the printer, and get the printer address from it. How to write this...
2. For the network printer with an IP address (don't know how to call it, this printer is directly connected to the network and has an IP address), how should I print the plt file? Is the method of copy *.plt \\computer name feasible? And how to get this IP address...
