To delete your Google account, sign into the Google My Account website and click the "Delete your account or services" option. You can also use this tool to delete just your Gmail address but keep your Google account. Deleting a Google account or your Gmail address will delete all associated data as well.
Deleting a Google Account
Visit myaccount.google.com in your browser. You can only delete your Google account from a web browser.
Click Sign in if you aren't already. This button is in the upper-right corner. If you are signed in, double-check that you're signed in with the account you want to delete.
Sign in with the account you want to delete.
Click Delete your account or services. This can be found at the bottom of the "Account preferences" section on the right side of the page.
Click Delete Google Account and data.
Review the content that will be deleted. You'll also be shown services you'll lose access to.
Click the download your data link to keep your data. This will take you to the Google Takeout page and walk you through the process of downloading an archive of your data.
Scroll down and check the two Yes boxes. This is the only confirmation you'll be giving for deleting your account.
Click Delete Account. Your account will be marked for deletion, which will occur shortly after you click Delete Account. Once your account is deleted, you'll lose access to all Google products and data associated with it.
Attempt to recover a deleted account. If you changed your mind or accidentally deleted the account, you have a short window of time to try to restore it:
Visit accounts.google.com/signin/recovery
Try to log in with the account you just deleted.
Click the "Try to restore account" link.
Enter the last password you used for the account. If you attempt to restore before your data is permanently deleted, you'll get your account back.
Batch files are the computer handyman’s way of getting things done. They can automate everyday tasks, shorten the required time to do something, and translate a complex process into something anyone could operate.
In this article, I’ll show you how to write a simple batch file. You’ll learn the basics of what batch files can do and how to write them yourself. I’ll also provide you with further resources for learning to write batch (BAT) files.
Step 1: Create a BAT File
Let’s say that you frequently have network issues; you constantly find yourself on the command prompt, typing in ipconfig and pinging Google to troubleshoot network problems. After a while you realize that it would be a bit more efficient if you just wrote a simple BAT file, stuck it on your USB stick, and used it on the machines you troubleshoot.
Create a New Text Document
A batch file simplifies repeatable computer tasks using the Windows command prompt. Below is an example of a batch file responsible for displaying some text in your command prompt. Create a new BAT file by right-clicking an empty space within a directory and selecting New, then Text Document.
Add Code
Double-click this New Text Document to open your default text editor. Copy and paste the following code into your text entry.
@echo off title This is your first batch script! echo Welcome to batch scripting! pause
Save As BAT File
The above script echoes back the text “Welcome to batch scripting!”. Save your file by heading to File, Save As, and then name your file what you’d like. End your file name with the added .batextension — welcome.bat for example — and click OK. This will finalize the batch process. Now, double-click on your newly created batch file to activate it.
Don’t assume that’s all batch scripting can do. Batch scripts parameters are tweaked versions of command prompt codes, so you are only limited to what your command prompt can do. For those unfamiliar the program, command prompt is capable of quite a lot.
Step 2: Learn Some Quick Code
If you know how to run commands in the command prompt, you’ll be a wiz at creating BAT files because it’s the same language. All you’re doing is telling the command prompt what you want to input through a file, rather than typing it out in the command prompt. This saves you time and effort; but it also allows you to put in some logic (like simple loops, conditional statements, etc. that procedural programming is capable of conceptually).
@echo — This parameter will allow you to view your working script in the command prompt. This parameter is useful for viewing your working code. If any issues arise from the batch file, you will be able to view the issues associated with your script using the echo function. Adding a following off to this parameter will allow you to quickly close your script after it has finished.
title — Providing much of the same function as a <title> tag in HTML, this will provide a title for your batch script in your Command Prompt window.
cls — Clears your command prompt, best used when extraneous code can make what you’re accessing had to find.
rem — Shorthand for remark, provides the same functionality as <!– tag in HTML. Rem statements are not entered into your code. Instead, they are used to explain and give information regarding the code.
%%a — Each file in the folder.
(“.\”) — The root folder. When using the command prompt, one must direct the prompt to a particular directory before changing a files name, deleting a file, and so on. With batch files, you only need to paste your .bat file into the directory of your choosing.
pause — Allows a break in the logical chain of your .bat file. This allows for users to read over command lines before proceeding with the code. The phrase “Press any key to continue…” will denote a pause.
start “” [website] — Will head to a website of your choice using your default web browser.
ipconfig — This is a classic command prompt parameter that releases information concerning network information. This information includes MAC addresses, IP addresses, and sub-net masks.
ping — Pings an IP address, sending data packets through server routes to gauge their location and latency (response time).
The library for batch variables is huge, to say the least. Luckily there is a Wikibook entry which holds the extensive library of batch script parameters and variables at your disposal.
Step 3: Write & Run Your BAT File
We’ll create two examples of batch scripts which can simplify your daily online and offline activities.
News Script
Let’s create an immediately useful batch script. What if you wanted to open all your favorite news websites the moment you wake up? Since batch scripts use command prompt parameters, we can create a script that opens every news media outlet in a single browser window.
To re-iterate the batch-making process: first, create an empty text file. Right-click an empty space in a folder of your choosing, and select New, then Text Document. With the text file open, enter the following script. Our example will provide the main American news media outlets available online.
The above script stacks one start “” parameter on top of the other to open multiple tabs. You can replace the links provided with ones of your choosing. After you’ve entered the script, head to File, then Save As. In the Save As window, save your file with the .bat extension and change the Save as type parameter to All Files (*.*).
Once you’d saved your file, all you need to do is double-click your BAT file. Instantly, your web pages will open. If you’d like, you can place this file on your desktop. This will allow you to access all of your favorite websites at once.
File Organizer
Have you been downloading multiple files a day, only to have hundreds of files clogging up your Download folder? Create a batch file with the following script, which orders your files by file type. Place the .bat file into your disorganized folder, and double-click to run.
@echo off rem For each file in your folder for %%a in (".\*") do ( rem check if the file has an extension and if it is not our script if "%%~xa" NEQ "" if "%%~dpxa" NEQ "%~dpx0" ( rem check if extension folder exists, if not it is created if not exist "%%~xa" mkdir "%%~xa" rem Move the file to directory move "%%a" "%%~dpa%%~xa\" ))
Here is an example of the my desktop before, a loose assortment of image files.
Here are those same files afterward.
It’s that simple. This batch script will also work with any type of file, whether it’s a document, video, or audio file. Even if your PC does not support the file format, the script will create a folder with the appropriate label for you. If you already have a JPG or PNG folder in your directory, the script will simply move your file types to their appropriate location.
Automate the Simple Stuff
This is just a taste of what batch scripts have to offer. If you need something simple done over and over — whether it be ordering files, opening multiple web pages, renaming files en masse, or creating copies of important documents — you can make tedious tasks simple with batch scripts