Batch file ideas


















I hope all of you actually read the code before running it. Introduction: 5 Cool Batch Files. By radame My youtube Follow. About: I am a computer "nerd" and I admit it Did you make this project? Share it with us! I Made It! Remote Control Light Switch by alanmerritt in Arduino. Reply Upvote. KKtotheAA zazenergy Reply 11 months ago. The Batch script above, filters for lines that have at least 3 tokens and it captures the first token only. Who said the Batch language is a simple language?

Did you know that you can write functions even recursive ones? As a convention, we put the argument number and its description. The "add" function is defined to take a return variable name argument 1 and two numbers "a" argument 2 and "b" argument 3.

The Batch programming is an old but a beautiful language. It has so many features that I was delighted to research and learn about. Sign in Email. Forgot your password? Search within: Articles Quick Answers Messages. Tagged as batch. Stats Elias Bachaalany Rate me:. Please Sign up or sign in to vote.

Practical and useful Batch files scripts for beginners and advanced users. Introduction Back in , I decided to learn as much as I can about the Batch files programming language because Batch was my first programming language when I was a kid.

You can use any text editor you like, but the standard Notepad app does the job just fine. But for now, you can stick with Notepad, as each example batch file below has been tested using that program. After saving, you can change the file extension from.

To do this, right-click the file and select Rename , then change the file extension as above. Alternatively, highlight the file and press F2 , then change the file extension,. Here are a few really useful batch files for you to play around with and some short descriptions of what each command syntax and parameter can do. If you have a list of programs you open each time you fire up your computer, you can use a batch file to automate the process.

Instead of opening each program manually, you can open them simultaneously. You can add as many applications and files as you want to the batch file. The batch file commands in this file are:. You can use a batch file to scan for and then delete files older than a certain amount of days. You set the maximum age range for the files in the batch file, allowing you to customize the process.

Furthermore, you can use the batch file script to delete a specific file type or a group of files in a folder, so long as they meet the criteria expressed in the commands. You can use a batch file to backup a specific folder or as part of a more substantial backup setup. You should use system backup and system restore points as part of your regular system maintenance.

Sometimes, it pays to make a couple of copies of anything that might make you cry if it were deleted or destroyed.

There are many different batch file backup methods you can use. Below are instructions for a basic backup batch file and another slightly more advanced version.

I don't know if it completely works so tweak it if you need to and post any improvements you have in mind. For the LAN network chat: The basic concept was good. However, seeing as how I am going to be using this for my school, I didn't want it to be back traceable to the students who use it. So I had it remove the report. I took the well known Matrix batch file code and gave it a little more. Now, instead of only filling a portion of the prompt and each line being a different length, they are all equal and go to the edge of the prompt if left at default width.

Can't you just make an unstoppable "virus" by making a simple batch file that shuts off the system when launch and just put that batch file in the startup folder? How do you make a virus that locks a computer and that can only be unlocked by a code that I make up? Create those two files, and put them in their own folder on a networked drive. Then have a nice long chat to anyone about anything. Do you want to scan your PC?



0コメント

  • 1000 / 1000