English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have 2 shortcuts on the following share: \\suns\public\publicdesktop\*.lnk and I need them to be placed on all user's desktop upon logging onto my domain. Here is my logon script (userlogon.bat):

@echo off

net use g: /delete
net use p: /delete

net use g: \\suns\groups
net use p: \\suns\public


@copy \\Suns\public\PublicDesktop\*.lnk %userprofile%\desktop\*.lnk

the mapped drives do appear, but the shortcuts are not showing up ont he desktops. I have made sure that the EVERYONE groups has full access to the publicdesktop share.

2006-12-20 03:42:55 · 2 answers · asked by aaviles769 2 in Computers & Internet Computer Networking

the path name got cutt-off:

...\publicdesktop\*.lnk

2006-12-20 04:16:52 · update #1

I took off the final ".lnk" and get "Syntax of the command is incorrect" when I execute this script

2006-12-20 06:13:16 · update #2

2 answers

Change the copy command to this...

@copy \\suns \public \PublicDesktop \*.lnk %userprofile% \desktop

Leave off the final "*.lnk"

2006-12-20 05:34:49 · answer #1 · answered by The Psycho 6 · 0 0

Do not use the asterisk (*), that is a wildcard character and will not work for a filename.

2006-12-20 03:45:59 · answer #2 · answered by Yoi_55 7 · 0 0

fedest.com, questions and answers