SAMBA--WINDOWS NETLOGON/ batchfile blues!!!

Gerry Maddock gerrym at futuremetals.com
Fri Nov 3 10:26:34 GMT 2000


    OK, I have Samba running as a PDC, I have a working batch file in
the netlogon share. I was editing my batch file, to automatically add a
new program to all users desktops, but I can't seem to get one line to
work right. If I copy the file to C:\windows\desktop, it works, but my
problem is that all of the users info for their desktop is stored in
C:\windows\profiles\THEIR USER NAME\desktop. Ok this is the line of the
batch file I'm having all the problems with:

copy \\smbsvr\disk_img\tr9032ins\TR9032win386ra7.exe
c:\windows\profiles\%username%\desktop

I thought the %username% would do the trick, but no luck. Next I tried:

copy \\smbsvr\disk_img\tr9032ins\TR9032win386ra7.exe
c:\windows\profiles\*\desktop

Still no luck!! Does anybody know what I can put there to get this line
to work???!!!





More information about the samba-ntdom mailing list