Skip to content

How to create Notepad to make fast Windows 7 batch scripts – The Visual Guide

27/06/2014

Step 1 – Make a Scripts directory

Open CMD with Admin Rights (Right click, runas Admin)

md c:\scripts

cd c:\scripts

 

Step 2 – Use notepad to create your .bat file

notepad myfirstscript.bat

notepad will launch – with the .bat created

Step 3 – Enter commands into notepad

whoami /user

Control+s to save file

notepad

Step 4 – Run file

myfirstscript.bat

whoamiThe script will return your host and user name, along with the SID info.

 

At this point, you can overtype the commands in myfirstscript.bat or create new batch files.

ipconfig /flushdns

 

notepad 2

Perhaps try this

control mouse

notepad

What happens?

mouseNow try other Control Panel commands

control networks

control printers

 

What to find out full system info?

notepad

and, like a magical charm, we will see

systeminfoping to test server connectivity

pingYou’ll see this

ping2

Useful commands to experiment

whoami /?

whoami /groups

whoami /all

whoami /all fo list

ipconfig /flushdns

ipconfig /displaydns

ipconfig /renewdns

 

Happy summer reading.

 

Resources:

Darril Gibson – Windows Portable Command Guide

http://www.amazon.co.uk/Windows-Portable-Command-Guide-70-680-ebook/dp/B004VEJ3HW

On a personal note – any books written by Darril Gibson will be worth buying.  I have no connection to the author, amazon or the book publisher, it’s just an honest recommendation to look out for this author’s work.

 

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: