>>>>>Our NET USE command does not work because we have a space in the printer name.
>>>>>
>>>>>What is the appropriate syntax to use to have this working:
>>>>>
>>>>>NET USE \\PROLIANT\HP DeskJet 895C Series Printer
>>>>
>>>>Try NET USE LPT1 "\\PROLIANT\HP DeskJet 895C Series Printer"
>>>
>>>I tried that from DOS and it does not work.
>>
>>My mistake - it works from a DOS command prompt inside of WinNT, but not from DOS - DOS has no native capability to deal with LFNs. Either using the short name, or renaming the printer would appear to be the only option.
>
>I meant, I tried it from a Win NT DOS Shell. I'll try it again this morning.
Under an NT DOS Shell, the form:
NET USE
port name "\\server name\share name
" works, at least under both NT WS and NT Server.
port name should not have a trailing
:, IOW:
NET USE LPT1 "\\PROLIANT\HP DeskJet 895C Series Printer"
Does work.
One thing to check - what does Network Neighborhood show for a share name for the printer? Is it possible that you've got the wrong name?