1
00:00:01,160 --> 00:00:02,900
Let's start by.

2
00:00:05,610 --> 00:00:12,240
At the time, if you are expected, you to dress up.

3
00:00:13,240 --> 00:00:18,660
In fact, harmful that you will find a find on the.

4
00:00:20,140 --> 00:00:22,390
And right, click on GeoEye and.

5
00:00:24,700 --> 00:00:26,650
This is it.

6
00:00:27,910 --> 00:00:34,080
We have traded in another post, so let's have a look over this.

7
00:00:35,680 --> 00:00:44,090
This scrap creates a backup of the files specified in Suits folder.

8
00:00:45,110 --> 00:00:50,480
It will copy them to the destination folder and it takes multiple other.

9
00:00:53,610 --> 00:01:01,950
If we specify minus are, this means that it will be even higher than five and under.

10
00:01:03,010 --> 00:01:10,990
If we specified minus, this means that we will create a compressed file for our.

11
00:01:12,190 --> 00:01:22,930
So we will not be a destination, but we will create a destination compressed by and mine will allow

12
00:01:22,930 --> 00:01:27,460
us to specify the file extension that we want to include in our.

13
00:01:31,480 --> 00:01:32,880
Those parameters are.

14
00:01:34,990 --> 00:01:36,310
That's a function.

15
00:01:37,310 --> 00:01:42,590
Which takes food destination, recursive compass extension.

16
00:01:45,540 --> 00:01:49,140
We will go quickly over the function.

17
00:01:50,280 --> 00:01:51,740
To explain how it works.

18
00:01:53,680 --> 00:01:59,920
If that is true, it will use our glove and instead of blow.

19
00:02:00,850 --> 00:02:02,500
Our club will take.

20
00:02:03,350 --> 00:02:06,650
Hidden files and fooled into account.

21
00:02:08,460 --> 00:02:17,040
Then it will create the destination folder, even if it exists, and then it will outrage over the file

22
00:02:17,040 --> 00:02:18,980
that we have got near.

23
00:02:20,310 --> 00:02:25,770
For each file, it will extract the file off and the file name.

24
00:02:26,670 --> 00:02:32,200
Then it will create the file path, including aliens.

25
00:02:32,200 --> 00:02:37,040
So if you have nested folders, it will create.

26
00:02:38,120 --> 00:02:41,840
And then it will use charters to copy the five.

27
00:02:42,820 --> 00:02:45,270
And if Congress is set to.

28
00:02:48,500 --> 00:02:51,650
It will create a compressed file and delete.

29
00:02:54,060 --> 00:03:02,460
Created folder here, otherwise it will copy the files to a destination folder.

30
00:03:03,000 --> 00:03:08,670
We have also used the extension in the Globe and our globe to.

31
00:03:09,580 --> 00:03:14,080
Let's check our files or to copy everything.

32
00:03:16,250 --> 00:03:27,530
OK, we should modify the script and that to allow our new script to execute efficiently, but let's

33
00:03:27,530 --> 00:03:32,510
see why I name this backup interface.

34
00:03:32,780 --> 00:03:36,940
Then from back, we will import backup.

35
00:03:36,980 --> 00:03:41,420
This is the function that we will use from us.

36
00:03:42,050 --> 00:03:44,270
We will import stuff.

37
00:03:44,600 --> 00:03:49,320
And then we will import by Joy as S.G..

38
00:03:49,640 --> 00:03:54,580
OK, now, before we do anything else, I want to execute this script.

39
00:03:54,950 --> 00:04:03,570
When I executed it, it had executed the backup script, not the backup function, but the backup script.

40
00:04:03,820 --> 00:04:04,240
Why?

41
00:04:04,430 --> 00:04:11,270
Because normally when you import a file into other file, it will execute a script.

42
00:04:11,690 --> 00:04:14,410
This will not work with us.

43
00:04:14,660 --> 00:04:20,290
We want only to execute the backup when we call it from the command line.

44
00:04:20,330 --> 00:04:21,470
So we do this.

45
00:04:21,470 --> 00:04:25,610
We will use if Dundies name equals.

46
00:04:28,110 --> 00:04:29,700
The main line.

47
00:04:31,570 --> 00:04:41,290
We will identify all of this, let's save this and let's execute this a second time, and now it's working

48
00:04:41,290 --> 00:04:42,140
as expected.

49
00:04:42,400 --> 00:04:46,870
OK, now let's check the name of this.

50
00:04:47,090 --> 00:04:50,620
How did we come up with this interface that you have seen?

51
00:04:50,980 --> 00:04:51,430
Let's.

52
00:04:58,350 --> 00:05:04,650
The packages have source destination, recurse compress extension.

53
00:05:04,980 --> 00:05:13,110
These are the parameters that we should pass to the backup function in order for it to work.

54
00:05:13,290 --> 00:05:17,270
OK, so let's design our interface.

55
00:05:17,490 --> 00:05:18,960
I will use.

56
00:05:20,890 --> 00:05:22,220
Some rectangles.

57
00:05:22,240 --> 00:05:25,220
So this will be a text label.

58
00:05:25,600 --> 00:05:35,740
This will be the source input and this is a browse button and we will do copy paste, we will do the

59
00:05:35,740 --> 00:05:38,070
same thing for the destination.

60
00:05:38,440 --> 00:05:41,020
So let's identify this.

61
00:05:41,050 --> 00:05:46,510
This will be source and this will be a destination.

62
00:05:46,850 --> 00:05:49,560
This will be an input box for the source.

63
00:05:49,960 --> 00:05:53,330
And this one will be an input box for the destination.

64
00:05:54,010 --> 00:05:57,160
And this is a browse button and this is a browse.

65
00:05:57,160 --> 00:06:04,810
But OK, now we have two of the parameters that we need, the remaining parameters.

66
00:06:05,050 --> 00:06:08,440
I will put them in a check box in here.

67
00:06:08,650 --> 00:06:17,070
So this and this one of them will be for the compress and the other will be for the record.

68
00:06:17,410 --> 00:06:23,130
But we will not be able to use the same thing for the extension or the extension.

69
00:06:23,140 --> 00:06:25,090
We will need to enter an extension.

70
00:06:25,300 --> 00:06:29,590
So we will have an input box to have the extension.

71
00:06:29,830 --> 00:06:36,930
OK, now we have all the parameters that we need, but how to execute the program?

72
00:06:37,270 --> 00:06:41,590
We will have a backup button and we will have a cancel.

73
00:06:41,590 --> 00:06:47,290
But so this will be backup and this will be cancelled.

74
00:06:47,590 --> 00:06:53,400
Now we have constructed all the elements that we truly need in our program.

75
00:06:53,590 --> 00:06:55,660
We can add one simple thing.

76
00:06:55,810 --> 00:07:02,880
We can add a multiline input so we can list all our files in here.

77
00:07:03,130 --> 00:07:07,290
And I think this will be a very nice interface.

78
00:07:07,420 --> 00:07:13,540
So to create this layout, we have to notice that this is a two columns layout.

79
00:07:13,840 --> 00:07:20,120
This is the first column and this is the second column for the column in the left.

80
00:07:20,140 --> 00:07:27,980
This is the first row, second row, third row four through and for the column on the right.

81
00:07:28,000 --> 00:07:30,160
This is the first, second, third.

82
00:07:30,610 --> 00:07:32,980
OK, now we have an overview.

83
00:07:33,130 --> 00:07:35,740
Why did we create the layout this way?

84
00:07:36,100 --> 00:07:38,970
And how can you create a layout?

85
00:07:39,250 --> 00:07:44,380
You simply take a deeper look on what parameters do you need.

86
00:07:44,590 --> 00:07:51,880
And you should create some elements to grasp these parameters.

87
00:07:52,300 --> 00:07:58,030
And then you will have to give the user means to execute the script or cancel.

88
00:07:58,420 --> 00:08:05,800
OK, now let's create our interface and let's first create the layout.

89
00:08:06,110 --> 00:08:08,770
Then we will create the other call.

90
00:08:09,320 --> 00:08:09,700
OK.

91
00:08:10,460 --> 00:08:20,410
So as we have seen, the layout is a list of left, the first element will be a text box with tools,

92
00:08:20,990 --> 00:08:23,760
a source folder.

93
00:08:24,350 --> 00:08:26,590
And this is only a text.

94
00:08:27,080 --> 00:08:30,260
Then we will have an input box.

95
00:08:30,560 --> 00:08:32,150
We will give it a key.

96
00:08:35,390 --> 00:08:38,300
This will be, for example, source.

97
00:08:39,160 --> 00:08:48,970
And then we will create folder is Jadot folder bra's and we will give a target, as we have seen, which

98
00:08:48,970 --> 00:08:50,150
will be source.

99
00:08:50,770 --> 00:08:53,010
This will create our first show.

100
00:08:53,560 --> 00:08:55,330
So let's create our window.

101
00:08:57,850 --> 00:08:59,290
I'll give it a out.

102
00:09:03,450 --> 00:09:13,890
Then event and values will equal to win do the right for now and let Sprent event.

103
00:09:16,600 --> 00:09:18,210
And Trent Veltz.

104
00:09:21,100 --> 00:09:22,990
Now, let's execute this.

105
00:09:23,470 --> 00:09:24,750
OK, this is nice.

106
00:09:26,690 --> 00:09:29,380
Now it can open the folder brass.

107
00:09:29,990 --> 00:09:31,620
OK, this is very nice.

108
00:09:31,640 --> 00:09:32,060
So.

109
00:09:35,700 --> 00:09:44,130
Let's duplicate this because we will have one for the source and one for destination will change this

110
00:09:44,700 --> 00:09:46,140
destination folder.

111
00:09:46,830 --> 00:09:49,190
This will be just an issue.

112
00:09:49,770 --> 00:09:51,480
This will be destination.

113
00:09:51,840 --> 00:09:53,550
OK, let me ask you this.

114
00:09:55,220 --> 00:10:00,300
This is nice, but I think we should align these two lines.

115
00:10:00,320 --> 00:10:02,420
It will be better to align them.

116
00:10:02,780 --> 00:10:09,710
All we need to do is to give our size to this tax.

117
00:10:10,150 --> 00:10:10,640
Why?

118
00:10:11,070 --> 00:10:17,240
Let me show I'll give this a size of twenty and one.

119
00:10:17,360 --> 00:10:21,380
For example, let's copy this paste here.

120
00:10:21,860 --> 00:10:23,010
Let's hear this.

121
00:10:23,520 --> 00:10:26,390
OK, now they are aligned.

122
00:10:26,720 --> 00:10:29,240
But why did we put them in here?

123
00:10:29,780 --> 00:10:40,430
If we put them on the input box, I remove this and I will put it on the other box.

124
00:10:40,460 --> 00:10:41,900
Now, let's explore this.

125
00:10:45,500 --> 00:10:53,990
Nothing had been changed because actually the text for the rules is shorter than the text for the destination.

126
00:10:54,320 --> 00:11:01,350
That's why we should align things with different numbers of characters.

127
00:11:01,550 --> 00:11:05,240
We can even put this to 25 or something.

128
00:11:05,250 --> 00:11:06,980
And this is correct.

129
00:11:07,160 --> 00:11:08,350
It's not No.

130
00:11:08,360 --> 00:11:10,020
20 is better, I think.

131
00:11:10,400 --> 00:11:13,300
OK, OK, this is very nice.

132
00:11:15,910 --> 00:11:20,820
This will open a folder and this will open the folder.

133
00:11:21,590 --> 00:11:21,990
Wrath.

134
00:11:22,370 --> 00:11:26,640
OK, now we have constructed the first two rows.

135
00:11:27,320 --> 00:11:29,040
Now let's create the multiline.

136
00:11:29,570 --> 00:11:32,930
This will be multi line.

137
00:11:33,730 --> 00:11:36,450
And we can give it.

138
00:11:37,020 --> 00:11:41,490
Sighs Let's first check it this way, I will show you this, OK?

139
00:11:42,160 --> 00:11:44,020
This should be bigger.

140
00:11:44,470 --> 00:11:54,790
So we will give it size will equal to size, takes a table will equal to 45 by 20.

141
00:11:55,240 --> 00:11:56,140
This is better.

142
00:11:56,500 --> 00:12:01,090
And we should give it a key because we will modify.

143
00:12:03,620 --> 00:12:12,230
Its contents, this will be filed, for example, and let let's put our buttons this.

144
00:12:14,870 --> 00:12:20,020
Martin will be back up and I'll give it a key back up.

145
00:12:23,140 --> 00:12:26,110
And we'll have another Berten exit.

146
00:12:28,740 --> 00:12:30,450
Now, let's explore this.

147
00:12:31,610 --> 00:12:39,590
And this is a very nice interface, but we should put some text before the multiline saying this is

148
00:12:39,780 --> 00:12:41,660
a list of files or something.

149
00:12:41,660 --> 00:12:50,450
So to do this will create is deemed a tax and we will save file lists, for example.

150
00:12:51,560 --> 00:12:54,370
We don't we should not forget the coming years.

151
00:12:54,730 --> 00:12:56,690
And this is very nice.

152
00:12:57,230 --> 00:13:07,040
OK, but in order to get the default theme for Windows, we should give it is the theme and we will

153
00:13:07,040 --> 00:13:10,100
use the full one.

154
00:13:10,430 --> 00:13:12,380
Let's hear this, OK?

155
00:13:12,400 --> 00:13:14,020
And this is the default.

156
00:13:14,630 --> 00:13:23,150
Of course, the other interface is nice, but this is what users has used to.

157
00:13:23,600 --> 00:13:26,900
But definitely you can use that interface.

158
00:13:29,360 --> 00:13:32,430
I will give them the very sizable equals, true.

159
00:13:32,870 --> 00:13:41,090
Let's take this now we can resize our window, but all of these will stay at the same location because

160
00:13:41,240 --> 00:13:44,080
we have given most of them a size.

161
00:13:44,390 --> 00:13:46,390
They will not exceed the size.

162
00:13:46,400 --> 00:13:49,120
So I remove a sizable.

163
00:13:49,610 --> 00:13:52,340
Now, let's carry our other column.

164
00:13:54,690 --> 00:14:04,380
The coulomb will be, again, less, less, and it will only contain check box, the first one will

165
00:14:04,380 --> 00:14:13,170
be for Congress and I'll give it a key which will be gone, for example.

166
00:14:13,530 --> 00:14:18,750
But this coulomb, it will be aligned with the multiline.

167
00:14:18,750 --> 00:14:26,970
So I will put it DSG, the colon cancer or colon for short and I'll give it.

168
00:14:28,000 --> 00:14:29,160
Let's check this.

169
00:14:30,050 --> 00:14:31,700
And this is very nice.

170
00:14:32,330 --> 00:14:36,080
OK, now let's play another.

171
00:14:40,890 --> 00:14:45,750
This one will be recursive or E c.

172
00:14:48,140 --> 00:14:56,720
And then the last one will be the extension, the extension will be an input box, so we should give

173
00:14:56,720 --> 00:15:08,270
it a tax extension, then we will add an in or input or tax or I thought I gave it.

174
00:15:09,110 --> 00:15:12,950
He will equal to 60.

175
00:15:16,710 --> 00:15:21,060
Now, let's take this nice, but this is very large.

176
00:15:21,940 --> 00:15:23,440
We should adjust it so.

177
00:15:25,420 --> 00:15:31,390
We'll give it SARS, which will equal to eight by one.

178
00:15:32,760 --> 00:15:40,490
We should also give it a default tax so we can give it the full tax, which will be asked after.

179
00:15:41,010 --> 00:15:43,370
OK, let's take this.

180
00:15:43,980 --> 00:15:46,560
That is very, very nice.

181
00:15:46,950 --> 00:15:58,590
If it will close the window, if we close from here, it will we will close the window also because

182
00:15:58,590 --> 00:16:00,720
we have not checked for them.

183
00:16:00,720 --> 00:16:02,350
But this will come later.

184
00:16:02,880 --> 00:16:04,620
We have printed Van.

185
00:16:05,600 --> 00:16:11,150
Which is none when we are closing from the window button.

186
00:16:12,060 --> 00:16:17,710
And it's printing all the values which are empty for now.

187
00:16:18,530 --> 00:16:18,900
OK.
