Cool--yeah, I saw your other post after I sent this. That's what I get for taking a day off and getting behind =)
-B -----Original Message----- From: James Kerr [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2008 7:01 AM To: NT System Admin Issues Subject: Re: Kixtart Question The problem was the END IF command needs to be ENDIF with no spaces, that fixed my problem. However, someone wrote a little script for me thats much better. All I have to do in this one is add or remove file names in the first line when I need to make changes without any need to change the code. James $Shortcuts = 'SuggestionBox.url', 'IT_HelpDesk.url', 'Casewatch.rdp', 'Online Training Center.url' For Each $Shortcut in $Shortcuts If Not Exist('%userprofile%\desktop\' + $Shortcut) Copy '\\domainname.local\netlogon\' + $Shortcut '%userprofile%\desktop' EndIf Next ----- Original Message ----- From: "Miller Bonnie L." <[EMAIL PROTECTED]> To: "NT System Admin Issues" <[email protected]> Sent: Monday, July 21, 2008 9:49 AM Subject: RE: Kixtart Question Does this work? 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 -Bonnie -----Original Message----- From: Richards, Brian D [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2008 1:40 PM To: NT System Admin Issues Subject: RE: Kixtart Question Here is a snippet of our logon script, using the IF NOT EXIST: Rem // create folder on client if it does not exist if not exist C:\ScriptLogic\NUL MD C:\ScriptLogic if not exist C:\ScriptLogic\NUL goto 9xServer It seems we have lots more if exist statements than if not exist... -----Original Message----- From: James Kerr [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2008 4:27 PM To: NT System Admin Issues Subject: Re: Kixtart Question 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> ~ ~ 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> ~ ~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~ ~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~
