Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arbitrary DOS printing behaviour across networks
Message
From
09/03/2004 12:14:31
 
 
To
08/03/2004 18:17:43
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00879251
Message ID:
00884474
Views:
34
Hi Harry,

Keep in mind that by doing it that way if someone comes along and needs to print on a regular basis in DOS from that workstation and runs the same command so that everytime the computer boots it has LPT1 mapped to a specific network printer when you app runs it will wipe it out. For that reason, we leave it mapped in windows so the users can always see the printer mapped to that port and anyone else who comes along.

>I just run it from the batch file which runs the DOS app. Rather than have it persistent I delete it first and reinitialise it each time. That way we seem to get fewer problems with the print spooler.
>
>Thanks
>
>>>>You can run a command like the following from a command prompt (or login script, .CMD file, whatever) to redirect DOS LPT port(s) to network print queues:
NET USE LPT1 \\ServerName\QueueName /persistent:y
>>>
>>>
>>>
>>>isn't that just for Novell? If not, its the one thing I haven't tried...
>>
>>No, I don't mean to run this from the VFP Command Window (although according to David it might work). Run it from a Windows command window ("DOS prompt") or execute a .CMD or .BAT via VFP RUN.
>>
>>There should also be an API call that does the same thing e.g. WNetAddConnection2: http://www.news2news.com/vfp/?group=89&function=597
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform