![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a script with this code in it: For Each objSc in objXml.DocumentElement.ChildNodes strUrl = objSc.Attributes.GetNamedItem("Url").Text strFileName = "G:\backup\Migrate\" & Replace(Replace(strUrl, "http://", ""), "/", "_") & _ ".fwp" strCmd = Migrate_Path & " -w """ + strUrl + """ -f """ + strFileName + """ -y -u * -pw * 'WScript.Echo "Backing up site collection with Migrate tool" & strUrl & " to file " & strFileName & " using the following command " & strCmd objShell.Exec(strCmd) The script goes too fast, it calls the command for all objects and creates errors. In testing I found that the command that runs with the first Object needs to finnish before the second command can begin. I'm very new to scripting and would love to know if there is a way I can set it to run the strCmd only after the first instance is done. Right now I am using the WScript.Echo line to slow it down but I have to be here to click OK eachtime. Please help! |
![]() |
| Thread Tools | |
| Display Modes | |
| |