Connecting to Multiple Locations:  See below.

 

Aborting a Script with a Failed Transfer to Multiple Locations:  See below.

 

You can have transfers in one Script file to multiple locations.  You would use the Quick Scripts to create a Script file to multiple locations.  See Transfers to Multiple Locations in the Getting Started with Quick Scripts section. 

 

This section deals with connecting to multiple computers at multiple locations as well as aborting a script when it fails.  It can be modem connections to multiple locations, or it can be Internet connections to multiple locations.  With an iClose-Up Script File you can connect and exchange files with over a hundred computers at other locations at night while you are asleep.  Since an iClose-Up Script File for modem connections and Internet connections looks the same, this section will serve as an example for both.  We will also assume that you have already made and run a successful iClose-Up Script File.

 

For our following example we will connect to two locations, which could be either Modem or Internet connections.

 

Below is an example of our script file Cairo with a script file Chicago merged after the “disconnect” section and before the “retry failures” section.  Further down the page we will show how to abort a Script with a Failed Transfer.

 

1       {The following options are the default values used for this script file}

 

2       logging

3         logging = on

4         log file name = Results to Cairo and Chicago.log

5         add current date to logfile name = yes

6         append new entries = yes

7         logfile details = full

8       end logging

 

9       exit

10        when exiting script file = hangup existing connection(s)

11      end exit

 

12      {End of default values used for this script file}

 

13      connect

14        connection = User:Cairo

15      end connect

 

16      transfer files

17        transfer type = copy

18        transfer method = smart

19        transfer option = (send all files) copies all files or folders you select to the destination pc.

20        if file exists on destination computer = replace the existing file if it is older

21        mirror image backup = no

22        include subfolders = yes

23        folder name on my computer = c:\results\*.*

24        folder name on other computer = \\cairo\c\update

25      end transfer files

 

26      disconnect

27        connection = User:Cairo

28      end disconnect

 

29      connect

30        connection = User:Chicago

31      end connect

 

32      transfer files

33        transfer type = copy

34        transfer method = smart

35        transfer option = (send all files) copies all files or folders you select to the destination pc.

36        if file exists on destination computer = replace the existing file if it is older

37        mirror image backup = no

38        include subfolders = yes

39        folder name on my computer = c:\results\*.*

40        folder name on other computer = \\chicago\c drive\update

41      end transfer files

 

42      disconnect

43        connection = User:Chicago

44      end disconnect

 

45      retry failures

46        if failure(s) occur during connection(s), retry it = 5 times

47        time to wait between retry of failure(s) =  3 minute(s)

48        if failure(s) still occur after retries = continue script file

49      end retry failures

 

 

Aborting a Script with a Failed Transfer to Multiple Locations:

 

 

Two Retry Failure sections to Abort a Failed Transfer:  In the following example we Fetch all the Inventory files from the computer Cairo.  Then we Send these Inventory files to the computer Chicago and then to the computer Boston.  If for some reason we cannot Fetch the Inventory files from Cairo, then we want to abort the script file, because it would be a wasted effort to connect to Chicago and then Boston trying to send an empty folder. 

 

In the following example we use two Retry Failure sections.  The first Retry Failure section (lines 29 through 33) goes after the Disconnect section that goes with the Fetch Transfer section.  The second Retry Failure section (lines 66 through 70) goes after the Disconnect section that goes with the last Send Transfer section.  Note that line 32 is where we changed the word “continue” to “abort”.  Line 69 shows a default Retry Failures section.  You can change “continue” to “abort” with your word processor or the iClose-Up Editor.

 

You can have as many Retry Failure sections as you have Transfer sections.

 

The following example Fetches from Cairo and then Sends to Chicago and Boston.  We underlined abort and continue to point them out, do not underline these words in your scripts nor put in line numbers as we did for narrative purposes.

 

1        {The following options are the default values used for this script file}

 

2        logging

3          logging = on

4          log file name = Fetch from Cairo Send to Chicago & Boston.log

5          add current date to logfile name = yes

6          append new entries = yes

7          logfile details = full

8        end logging

 

9        exit

10         when exiting script file = hangup existing connection(s)

11       end exit

 

12       {End of default values used for this script file}

 

13       connect

14         connection = User:Cairo

15       end connect

 

16       transfer files

17         transfer type = copy

18         transfer method = smart

19         transfer option = (fetch all files) copies all files or folders you select to your pc.

20         if file exists on destination computer = replace the existing file if it is older

21         mirror image backup = no

22         include subfolders = yes

23         folder name on other computer = \\cairo\c\update\*.*

24         folder name on my computer = c:\results

25       end transfer files

 

26       disconnect

27         connection = User:Cairo

28       end disconnect

 

29       retry failures

30         if failure(s) occur during connection(s), retry it = 5 times

31         time to wait between retry of failure(s) =  3 minute(s)

32         if failure(s) still occur after retries = abort script file

33       end retry failures

 

34       connect

35         connection = User:Chicago

36       end connect

 

37       transfer files

38         transfer type = copy

39         transfer method = smart

40         transfer option = (send all files) copies all files or folders you select to the destination pc.

41         if file exists on destination computer = replace the existing file if it is older

42         mirror image backup = no

43         include subfolders = yes

44         folder name on my computer = c:\results\*.*

45         folder name on other computer = \\chicago\c drive\update

46       end transfer files

 

47       disconnect

48         connection = User:Chicago

49       end disconnect

 

50       connect

51         connection = User:Boston

52       end connect

 

53       transfer files

54         transfer type = copy

55         transfer method = smart

56         transfer option = (send all files) copies all files or folders you select to the destination pc.

57         if file exists on destination computer = replace the existing file if it is older

58         mirror image backup = no

59         include subfolders = yes

60         folder name on my computer = c:\results\*.*

61         folder name on other computer = \\boston\c drive\update

62       end transfer files

 

63       disconnect

64         connection = User:Boston

65       end disconnect

 

66       retry failures

67         if failure(s) occur during connection(s), retry it = 5 times

68         time to wait between retry of failure(s) =  3 minute(s)

69         if failure(s) still occur after retries = continue script file

70       end retry failures