Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Space in the printer name
Message
From
27/10/1999 09:01:07
 
 
To
27/10/1999 08:38:00
General information
Forum:
Windows
Category:
Printing
Miscellaneous
Thread ID:
00281644
Message ID:
00282175
Views:
31
>>>>>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?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform