I have the following part in my logon scripts but its not working properly.
IF NOT EXIST ("%userprofile%\desktop\SuggestionBox.url")
COPY "\\domainname.local\netlogon\SuggestionBox.url"
"%userprofile%\desktop"
END IF
IF NOT EXIST ("%userprofile%\desktop\IT_HelpDesk.url")
COPY "\\domainname.local\netlogon\IT_HelpDesk.url" "%userprofile%\desktop"
END IF
IF NOT EXIST ("%userprofile%\desktop\Casewatch.rdp")
COPY "\\domainname.local\netlogon\Casewatch.rdp" "%userprofile%\desktop"
END IF
IF NOT EXIST ("%userprofile%\desktop\Online Training Center.url")
COPY "\\domainname.local\netlogon\Online Training Center.url"
"%userprofile%\desktop"
END IF
It will only copy the first file. If I remove all the end ifs except the
last one, it will copy all the files but only if none of the files existed
on the users desktop. If one of the files is already on the desktop it wont
work, unless the missing file is the first one suggestionbox.url. What am I
doing wrong here folks?
James
~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~