Copy Directory Tree to Single Directory

The flowing commands will copy all the files in a directory tree to a single directory. First, from the command prompt, CD to the top node of the directory tree: cd /d “C:\Users\topoftree” Then execute to following which will cycle through all child directories, copying all content to the directory of your choosing: for /r %d in (*) do copy …

Window Machine Serial Number

Ever wanted to find your window machine serial number without looking at the hardware?  Try this.  From a command prompt, enter: wmic bios get serialnumber This tip can be found at: https://support.microsoft.com/en-us/kb/558124

Set IP Address from VPN

This script will get the ip address to set the /etc/hosts file in Windows. I use this script in conjunction with the VPN software I use to log into a client’s network. Once on their network, I rest my /etc/hosts file to that my system recognizes the IP address for testing purposes. THE NSLOOKUP GETS THE SVN SERVER IP ADDRESS …