1 00:00:00,120 --> 00:00:04,800 You may recall, at the beginning of the course, I briefly introduced you to batch files. 2 00:00:05,310 --> 00:00:11,130 This was when you clicked on an icon on your desktop and your browser opened up with the corresponding 3 00:00:11,130 --> 00:00:16,080 websites or websites you specified within the batch file itself. 4 00:00:16,500 --> 00:00:20,970 But what I would like to do now is to go into a little bit more detail with batch files, and I'd like 5 00:00:20,970 --> 00:00:25,950 to show you how you can start applications with a batch file on your computer. 6 00:00:26,250 --> 00:00:31,320 Now, once you've created this batch file, I'll show you how you can get this batch file to start automatically 7 00:00:31,530 --> 00:00:33,090 when you start your computer. 8 00:00:33,360 --> 00:00:38,730 OK, so like I said, I want to start applications with a batch file, so to do this, you have to get 9 00:00:38,730 --> 00:00:40,200 the target information. 10 00:00:40,830 --> 00:00:44,640 So one way to do is I'm just going to show my icons on my desktop. 11 00:00:47,250 --> 00:00:52,320 And the application I want my batch file to start is going to be Photoshop, but I can see I don't think 12 00:00:52,320 --> 00:00:54,810 I actually have a shortcut on my desktop. 13 00:00:54,810 --> 00:00:57,830 So what I'm going to do is I'm just going to go to the magnifying glass here. 14 00:01:00,180 --> 00:01:01,920 And just right click on Photoshop here. 15 00:01:02,700 --> 00:01:04,140 I'll open its file location. 16 00:01:05,100 --> 00:01:06,300 I'm going to right click on it. 17 00:01:09,240 --> 00:01:10,760 I'm just going to create a shortcut. 18 00:01:12,280 --> 00:01:17,290 OK, so this recommending I put it on the desktop, so I'll just say yes to that, and I think I'm also 19 00:01:17,290 --> 00:01:19,150 going to do this with Illustrator as well. 20 00:01:19,870 --> 00:01:23,170 Another program that I use quite a lot, so I'll come to show more options. 21 00:01:26,060 --> 00:01:29,390 I'll create another shortcut, and I'll just click on, yes. 22 00:01:32,580 --> 00:01:34,740 OK, so here's Illustrator, and here's Photoshop. 23 00:01:35,040 --> 00:01:38,850 So, like I said, you need the target information so you can just right click on the application. 24 00:01:39,860 --> 00:01:43,680 I go to properties and it's this information here. 25 00:01:44,630 --> 00:01:50,930 So just click inside of there and hold down control and a to select all of it, our right click and 26 00:01:50,930 --> 00:01:51,830 then click on copy. 27 00:01:53,440 --> 00:02:00,520 And they can just get rid of this next thing now is to open up the notepad, so goes magnifying glass 28 00:02:02,590 --> 00:02:04,270 and I'll open up my notepad. 29 00:02:06,270 --> 00:02:09,150 Now, just like in the first batch file we created. 30 00:02:10,190 --> 00:02:12,170 The code is pretty much the same. 31 00:02:12,470 --> 00:02:14,120 There's just a few differences. 32 00:02:14,300 --> 00:02:17,270 In fact, I think there's only one difference that we have to make. 33 00:02:20,940 --> 00:02:22,500 So it starts with at ECHO. 34 00:02:24,820 --> 00:02:25,780 Then type of. 35 00:02:28,370 --> 00:02:31,040 Start and this is the big difference here. 36 00:02:32,860 --> 00:02:34,330 You put in to double quotes. 37 00:02:35,140 --> 00:02:38,050 Move along, put in two double quotes again. 38 00:02:38,560 --> 00:02:42,670 And then in between these two quotes is where the target information goes. 39 00:02:42,970 --> 00:02:47,950 So just hold down control and press V and I can see I've ended up with too many quotes yet, so I'll 40 00:02:47,950 --> 00:02:49,570 just get rid of the extra ones. 41 00:02:50,560 --> 00:02:56,800 Then I'll go to file save as and I'm going to go to my desk top. 42 00:03:00,840 --> 00:03:08,130 I just remember that you have to give the dot bat extension and set this to all files and then click 43 00:03:08,130 --> 00:03:08,490 Save. 44 00:03:10,500 --> 00:03:16,260 So now I'll get rid of this, and if I were to double click on this now, hopefully Photoshop should 45 00:03:16,260 --> 00:03:16,920 start up. 46 00:03:20,910 --> 00:03:23,340 OK, so that works, okay, so I'll just get rid of this. 47 00:03:24,150 --> 00:03:30,300 Now, if I want to add Illustrator as well, I could just right click go to properties and this is already 48 00:03:30,300 --> 00:03:33,480 selected, so I'll just right click, go to copy. 49 00:03:33,690 --> 00:03:34,620 Get rid of this here. 50 00:03:35,220 --> 00:03:36,420 I'll go to my application. 51 00:03:37,350 --> 00:03:40,530 Sorry, my batch file, and I'll go to show more options. 52 00:03:42,780 --> 00:03:44,010 And I'll click on Edit. 53 00:03:45,350 --> 00:03:51,110 Now, unlike when we created the batch file to open up the various websites within your Chrome browser, 54 00:03:51,710 --> 00:03:56,680 you can't just put another two quotes in here at the end and then add your other target information, 55 00:03:57,230 --> 00:04:02,690 but rather you have to go underneath type and start. 56 00:04:05,550 --> 00:04:10,800 Put another two quotes in, and I'm going to go ahead and hit control plus v because I remember the 57 00:04:10,800 --> 00:04:15,750 last time the double quotes were already there, a whole down control press asked to save this. 58 00:04:16,380 --> 00:04:18,240 And remember, it's already saved us a batch file. 59 00:04:18,240 --> 00:04:22,530 So we already have that dot bat extension and I can get rid of this now. 60 00:04:23,220 --> 00:04:30,570 And if I double click on this, Photoshop and Illustrator should start now. 61 00:04:30,570 --> 00:04:34,590 One thing to be aware of with this is you don't want to overload your computer. 62 00:04:34,620 --> 00:04:40,710 So, for instance, Photoshop and Illustrator are quite heavy programs in terms of the amount of processing 63 00:04:40,710 --> 00:04:45,180 power they use, but my computer's quite up-to-date so it can handle it. 64 00:04:46,050 --> 00:04:48,280 But that's definitely something you want to be aware of. 65 00:04:49,220 --> 00:04:54,200 All right, so the next thing now is to show you how you can get this batch file to start automatically 66 00:04:54,380 --> 00:04:55,700 when you turn on your computer. 67 00:04:56,330 --> 00:05:00,290 Now one thing to be aware of here, and I've kind of just touched on it a second ago. 68 00:05:00,770 --> 00:05:03,500 This type of batch file can use quite a lot of processing power. 69 00:05:03,860 --> 00:05:08,810 And when you first turn on your computer, it already has quite a few things to think about. 70 00:05:08,900 --> 00:05:15,280 Now, usually, Windows has got quite a good management system, and it just does things well, I suppose 71 00:05:15,290 --> 00:05:16,250 one step at a time. 72 00:05:16,970 --> 00:05:20,180 But you will find that your boot up will be quite slow. 73 00:05:20,510 --> 00:05:26,600 If you're asking it to open up maybe various batch files with different websites and applications and 74 00:05:26,600 --> 00:05:27,380 things like that. 75 00:05:27,500 --> 00:05:29,510 So it's good to just be aware of that. 76 00:05:29,720 --> 00:05:29,990 All right. 77 00:05:29,990 --> 00:05:30,980 So how do we do this? 78 00:05:31,370 --> 00:05:33,560 Well, let's be honest with you, it's really straightforward. 79 00:05:33,980 --> 00:05:40,010 You can hold down the windows key and press are on your keyboard, and this will open up the run command. 80 00:05:40,760 --> 00:05:48,530 You can also just go to the magnifying glass here and then go to search and type in run command or just 81 00:05:48,530 --> 00:05:48,920 run. 82 00:05:51,090 --> 00:05:52,290 But this is already open. 83 00:05:53,810 --> 00:05:56,030 And all you want to do is just type in Shell. 84 00:05:57,730 --> 00:05:58,420 Colon. 85 00:05:59,630 --> 00:06:01,640 Start up, then click OK. 86 00:06:02,510 --> 00:06:07,190 This will open up, all you have to do is just select the batch file you want, start up to open for 87 00:06:07,190 --> 00:06:10,220 you, right click and will copy it. 88 00:06:11,870 --> 00:06:13,310 And then just paste it into here. 89 00:06:14,240 --> 00:06:20,330 Now you could do the exact same thing with the batch file that opens up the various websites within 90 00:06:20,330 --> 00:06:21,140 your Chrome browser. 91 00:06:21,350 --> 00:06:27,890 But with regard to using shall start up to start applications, there's no point in actually creating 92 00:06:27,890 --> 00:06:28,910 a batch file. 93 00:06:29,180 --> 00:06:30,230 All you would have to do. 94 00:06:34,330 --> 00:06:40,510 Just go to the application, right click go to copy and just paste in the application here. 95 00:06:41,410 --> 00:06:44,560 And that's all you have to do to get these applications to start up. 96 00:06:44,830 --> 00:06:49,420 But I don't need Photoshop start up when I turn on my computer, so I'm going to press delete. 97 00:06:50,140 --> 00:06:52,750 OK, so that's what I wanted to show you with regard to batch files. 98 00:06:53,020 --> 00:06:54,610 Just two things to take away from this. 99 00:06:54,940 --> 00:07:00,250 Just remember, if you want to edit your batch file, you can just go to the batch file itself. 100 00:07:00,250 --> 00:07:03,910 Right click Go to show more options and then go to edit. 101 00:07:05,670 --> 00:07:11,430 And also the other thing was, if you're not particularly good at remembering your code or what is known 102 00:07:11,430 --> 00:07:16,590 as syntax, then just keep these two batch files on your computer for future use.