Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Space in the printer name
Message
De
27/10/1999 03:26:45
 
 
À
26/10/1999 16:21:45
Information générale
Forum:
Windows
Catégorie:
Impression
Divers
Thread ID:
00281644
Message ID:
00282096
Vues:
25
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform