Just going to make a new text file in just going to rename it SND.BAT and then I am going to edit it you probably have no pad pop up but the same thing and I am going to type SNDrec32.exe just like I did in the command in the run prompt and I am going to save it by clicking control-S or file save and now I am going to run the command. And it open windows sound recorder but it open to DOS staying behind it and if I open sound recorder it is going to actually close the DOS thing. To avoid that from happening you can actually say start. You can type start so it opens as a separate process in then the name of the file.
So, now I am just going to save this and open this again and as you can see the DOS prompt appears for like half a second in disappears in just open this program. So, actually it is very, very simple to make.
Here is another example, okay let say after I open windows sound recorder I want to open another program called audacity. Audacity is a program files show audacity; I cannot just say audacity that exes start audacity that exe because it does not work. I have to point program files first. I can actually open audacity just by saying CD basically go to directory program files audacity in then start audacity.exe.
I can save it, open SND.BAT in it is going to open sound recorder and it also going to open audacity. So, you can open as many programs as you want all you have to do is point to the directory there and start the executable. I am going to make it open firefox, I got program files Mozilla firefox there we go and here have firefox that exe. Basically I am going to make a new line and say to the directory of firefox where the firefox executable list. And I want you to start firefox that exe and I click save and I run SND.BAT Again and it is going to open audacity it is going to open firefox and it is going to open window sound recorder.
However, you can open multiple things some programs have command line options let me open firefox again. Here is firefox I can easily search firefox command line switches that is what they called command line arguments or command line switches and you can get a list of a command line options for firefox that you can input. So you can change the profile, change the user, open different files all by using the command line or you then resize firefox in that is not the only program that has command line it also use command line switches for your favorite audio programs like Winamp or VLC player so you can open a play list or you can open your favorite internet radio stream just by double clicking the file.
Let me go back to Firefox and show you an example of using just a command line parameter. For example the command line parameter new tab in Firefox. I am just going to copy it and I am going to delete all this other craft because I do not really want these files to open there. It just going to open Firefox and to recap CD means go to the directory program files as Mozilla Firefox in start just make the command line not show up so it is not open after it opens Firefox and now I am going to add the command line option new tab in Firefox. So, I am just going to paste it new tab and I am going to type url. You can make video request, video twirl request that u-tube.jimmyr.com so I am going to post that. I am going to save and I am going to open the batch file in there it is u-tube.jimmyr.com, video request form. And that is all you have to do to add command line options you just add whatever command line option they list and the correct parameter in there you go.
But again, it works for multiple programs if you go to u-tube.com I actually used it in one of my videos the Berkeley things search jimmyr.com Berkeley and I have that thing about getting free university courses. I used batch files to organize the 100 and 55 courses in Berkeley. For example I am using real alternative in it is a real player so I download this, I extracted on the desktop it is going to give me jimmyr.com and I have choose about that which is the batch file I was talking about.
So people can choose the courses a lot easier. And you can add on it to see what is inside that lot of you guys have been asking where I can get basic computer programming courses and Berkeley has several of them. If you just click choose, and two for computer courses. It has the instruction and interpretation of computer programs which is basically introduction to computer programming. So, I am just going to select your random one in I am going to say 14 random course number.
It is going to open the play list in her I have all the lectures in this Berkeley course. I can resize to whatever in you can actually watch the course from Berkeley. So, use those instead I think there very, very descriptive in a very good courses in there probably a lot better than I can do just posting videos twirls programming in u-tube.
Anyways, thanks for listening t
Transcription by:
Scribe4you Transcription Services