[Samba] logon.bat

John H Terpstra jht at Samba.Org
Tue Jul 5 20:49:16 GMT 2005


On Tuesday 05 July 2005 14:26, Matthias Spork wrote:
> Hello,
>
> Jason Greene schrieb:
> > Hi all,
> >
> > My logon.bat file runs but none of the drives get mapped.
> >
> > Here is my logon.bat file
> >
> > net time \\%L /set /yes
> > net use o: \\%L\data
> > net use j: \\%L\pca
> > net use g: \\%L\peachtree
> >
> >
> > Is this setup wrong?
>
> %L is only only in the smb.conf usefull. In Login-Scripts you have to
> use the Servername \\server\share. You can also test \\%LOGONSERVER%\share.

No. %LOGONSERVER% already has the leading \\, so do not add them a second 
time. Instead, just use: %LOGONSERVER%\share

- John T.
-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.


More information about the samba mailing list