Page 1 of 1 1
Topic Options
#46626 - 2003-10-13 11:24 PM share name length limit with use command?
Matt Mensching Offline
Fresh Scripter

Registered: 2003-10-03
Posts: 10
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


Top
#46627 - 2003-10-13 11:26 PM Re: share name length limit with use command?
macIntoz Administrator Offline
Administrator
*****

Registered: 2002-11-12
Posts: 22
as far as I know, win9x has limit of 8 chars
Top
#46628 - 2003-10-13 11:27 PM Re: share name length limit with use command?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
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 ]
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.051 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org