I just gave that a try and all it does is copy the first file.

----- Original Message ----- From: "Richards, Brian D" <[EMAIL PROTECTED]>
To: "NT System Admin Issues" <[email protected]>
Sent: Friday, July 18, 2008 4:19 PM
Subject: RE: Kixtart Question


Maybe instead ELSE IF on the 2nd, 3rd and last IF statements? (and
remove all END IFs but the last)
-----Original Message-----
From: James Kerr [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2008 4:16 PM
To: NT System Admin Issues
Subject: Kixtart Question

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>  ~

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

~ Upgrade to Next Generation Antispam/Antivirus with Ninja!    ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm>  ~

Reply via email to