Batchography: Changing the MAC address on Windows – A free Batch script

batchography-good-resIn a previous post entitled “How to get unlimited free Internet at Airports“, I showed you how to circumvent the time limit imposed by the “free” Wi-Fi connections in certain airports.

For that trick to work, you were required to update the MAC address of your computer each time the free time is over.

In this blog post, I am going to share with you the ChangeMACAddressBatch script that I wrote with the help and instructions from the excellent Batchography book.

The script makes use of various recipes illustrated in the Batchography book (in Chapter 4) and uses the various Batch scripting language syntax (Chapters 1 and 2) and methodologies (Chapter 3). Therefore, I will not be explaining the script’s contents or how it works because it will become evident if you read the Batchography book.

flower separator

Get the book from Amazon:

  • Paperback editionbtn-buy-on-amazon
  • E-book editionbtn-buy-on-amazon

flower separator

How to use the script interactively

To begin with, you need to run the script with administrative privileges.

Running the script as an administrator


On Windows 8 and above, just press Win+X and choose “Command Prompt (Admin)” like this:

chg-mac-run-elevated-command-prompt

Otherwise, if you are using the Windows Explorer window, then right-click on your script and choose “Run as Administrator”:

chg-mac-run-as-admin

Starting the script

When you first run the script, you will be presented with the main menu that will show you a list of all the adapters you have on your system.

On my laptop for instance, I have 4 adapters:

  • An Ethernet adapter
  • 2 x VMWare virtual adapters
  • A Wi-Fi adapter

Using the keyboard, type the adapter number that you want to inspect and/or change its MAC address:

chg-mac-main-menu

Let’s press “4” in this case and go inside that adapter’s information screen. Continue reading “Batchography: Changing the MAC address on Windows – A free Batch script”

Dream – Death and Reincarnation

A few month back, I had the following dream:

I was driving my car and I suddenly lost control of it and it strayed from the right all the way to the left and hit another men’s four wheeler. The other driver was not harmed but became so enraged. He stepped out of his car, shot and killed me. My body was dead but I was still able to see what’s happening around me. I was like a ghost or spirit. I could roam anywhere I want and fly.

Continue reading “Dream – Death and Reincarnation”

Keyboard shortcuts for working in a remote desktop Windows Machine from your MacBook

macos-rdp-1In this blog post, I am going to share with you how to get the missing keyboard keys that let you work in MS Windows via the remote desktop client under Mac OS X with the MacBook’s keyboard.

What is important to know is that when using a MacBook’s keyboard, you don’t have all the keys that you usually have on a PC keyboard.

Essentially, you are missing the following keys:

  • HOME / END.
  • DEL key. This is different from the MacBook’s “Delete” key (which is equivalent to the “Backspace” key).
  • INS Key.
  • Page Up / Page Down.
  • The “Windows” key.

Continue reading “Keyboard shortcuts for working in a remote desktop Windows Machine from your MacBook”

Wear a Flower – At Seattle’s Pike Market

The other Sunday, I ran into the “Crystal Bouquet – Wear a flower” artisan shop in the Pike Market in Seattle where they put flowers inside a glass pendant:

flowerContact information:

crystal-bouqet-wear-a-flower

flower
You might also like:

Batchography: Building a dynamic menu in Batch files – Part 1

batchography-good-resIn this blog post, I am going to share with you a recipe from the Batchography book that illustrates and explains how to build a dynamic menu using the CHOICE command with Batch files. In this article, we will dynamically build a menu around the COLOR command so that the user can change the colors of the console interactively.

To learn more about this technique and the Batch scripting language, please refer to Chapters 3 and 4 in the Batchography book.

flower separator

Get the book from Amazon: the print editionbtn-buy-on-amazonor the e-book editionbtn-buy-on-amazon

flower separator

Continue reading “Batchography: Building a dynamic menu in Batch files – Part 1”

Batchography: Embedding an executable file in a Batch script

batchography-good-resIn this blog post, I am going to share with you a recipe from the Batchography book that illustrates and explains in details how to embed executable files in the Batch file script and execute them after they are dropped.

This technique does not rely on using a polyglot Batch file where its first part is actually a Batch script and the other part is a VBS or JScript script. If you want to learn more about how to write polyglot Batch scripts, please refer to Chapter 4 in the Batchography book.

flower separator

Get the book from Amazon: the print editionbtn-buy-on-amazonor the e-book editionbtn-buy-on-amazon

flower separator

Continue reading “Batchography: Embedding an executable file in a Batch script”

Batchography: Useful keyboard shortcuts for editing and working with the command prompt

batchography-good-res

In the Batchography book, not only you will learn about the command prompt’s keyboard shortcuts, macros and what not, but you will also learn the basic and fundamental topics for programming in the Batch language.

In this blog post, I present to you an excerpt from Chapter 1 in the Batchography book that covers all the useful keyboard shortcuts. My new favorite one is the F11 keyboard shortcut that is present in Windows 10 and up.

Get the book from Amazon: printed editionbtn-buy-on-amazonor the Kindle edition btn-buy-on-amazon. Continue reading “Batchography: Useful keyboard shortcuts for editing and working with the command prompt”

Kindle edition – Batchography: The Art of Batch Files Programming

buy-from-amazon

After one month of releasing the Batchography book, this month I released the e-book Kindle edition.

The benefits of the e-book Kindle edition is that you can buy the book from many countries in just a few clicks: USA, United Kingdom, Germany, France, Spain, Italy, Netherlands, Japan, Brazil, Canada, Mexico, Australia, India.
flower separator
In the Batchography book, you will learn about:

  • The Basic concepts of Batch file scripting
  • Data structures: Arrays, Stacks, Sets, Maps
  • Multiline, compound and conditional statements
  • Function calls and repetition control structures
  • Files and strings manipulation techniques
  • Debugging and troubleshooting tips
  • Coding conventions and testing methodologies

Click here to see full details about the book.

Buy from Amazon: the print bookbtn-buy-on-amazonor the e-book btn-buy-on-amazon

flower separatorYou might also like:

 

WifiPasswordReveal: A script to reveal all the saved WiFi passwords in Windows 7 and above

Hello,

The “How to show saved Windows 7 Wifi passwords” turned out to be a popular article and to make the life of my readers easier, I decided to apply a newly acquired knowledge and write a tool to make it SUPER EASY to get all the saved WiFi passwords without needing administrative privileges and without having to click through various settings dialogs.

Note: In some cases, if the script fails to run, then you may want to run the script as administrator.

Read on! or download the script. Continue reading “WifiPasswordReveal: A script to reveal all the saved WiFi passwords in Windows 7 and above”

Introducing the “Batchography: The Art of Batch Files Programming” book

buy-from-amazonLong gone are the days when you had to use search engines to jump from one website to another in order to figure out the syntax or how to solve a problem using a Batch file script. The Batchography book is a boon for system administrators, build engineers, programmers and home users alike. It takes you on a journey of re-discovery of the lost art of Batch files programming. Whether you are an experienced user or new to the language, you will be surprised by the clarity and the abundance of the material presented in this book. With more than 140 scripting recipes, you will learn about things that you never thought were possible to achieve using the Batch files scripting language.

In the Batchography book, you will learn about:

  • The Basic concepts of Batch file scripting
  • Data structures: Arrays, Stacks, Sets, Maps
  • Multiline, compound and conditional statements
  • Function calls and repetition control structures
  • Files and strings manipulation techniques
  • Debugging and troubleshooting tips
  • Coding conventions and testing methodologies

Buy from Amazon:

Enable and use Bash under Windows 10

linux-subsystem-bash-coming-to-windows

Starting from Windows 10 build 14316 you will be able to use Bash from Windows, with the Ubuntu flavor without running a VM.

Bash will run natively on the OS without virtualization. It is implemented as new Windows subsystem.

In this article I will show you all the required steps to get Bash up and running in Windows 10! Continue reading “Enable and use Bash under Windows 10”