Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Space in the printer name
Message
From
27/10/1999 03:26:45
 
 
To
26/10/1999 16:21:45
General information
Forum:
Windows
Category:
Printing
Miscellaneous
Thread ID:
00281644
Message ID:
00282096
Views:
27
>>>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
>>
>>When you share a printer, it tells you that it won't be accessible to DOS programms if the share name is longer than 8 characters or includes spaces in the name.
>>
>>The only way is to have it either mapped to an LPT port or use a DOS accessible name. i.e.: HPDJ895C
>
>We found that the shared name is a short name. However, one printer that need to be shared in on a computer name which is a long name. So, we have the same problem. What should I do exactly to map to an LPT port?

If quote encapsulation isn't working as I suggested, the shared printer name resolves the same way as an LFN; you can use the API call GetShortPathName once to find the valid short name and use it. Quote encapsulation works for me, though.
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