Matt Mensching
(Fresh Scripter)
2003-10-13 11:24 PM
share name length limit with use command?

I am trying to map a drive based on group membership to a hidden share (thanks to my Windows 98 machines). I have posted the appropriate portion of my script. The first group's use command works fine, and so does the third, but the second one does not work on a Windows 98 machine or Windows XP machine. I have tried getting rid of the "." in the second share name, but that did not solve my problem. The only other difference I can see is the length of the share name. Is there a limit to the length of the share name?

Thanks,

Matt Mensching
code:
;****************************************
;* Mapping for Hidden Shares - S: drive *
;****************************************
:HiddenShares
IF INGROUP("HS-CASHSPSI") = 1
? "HS-CASHSPSI hidden share"
use s: /DEL
$c = '$$'
use s: '\\maprofile\SPSI FTE FY 2003'+$c
sleep 5
ENDIF

IF INGROUP("HS-EDUHolyGround") = 1
? "HS-EDUHolyGround hidden share"
use s: /DEL
$c = '$$'
use s: '\\maprofile\Holy Ground photo nov session'+$c
sleep 5
ENDIF

IF INGROUP("HS-GenActgCS") = 1
? "HS-GenActgCS hidden share"
use s: /DEL
$c = '$$'
use s: '\\maprofile\Cash Sheets'+$c
sleep 5
ENDIF



macIntozAdministrator
(Administrator)
2003-10-13 11:26 PM
Re: share name length limit with use command?

as far as I know, win9x has limit of 8 chars

Sealeopard
(KiX Master)
2003-10-13 11:27 PM
Re: share name length limit with use command?

See the FAQ Forum under Limits in NetBIOS, computer/printer names, share names/comments

And in general, I'd avoid spaces in sharenames anyway, as well as long sharenames.

[ 13. October 2003, 23:28: Message edited by: sealeopard ]