Guidgen Console
I say gwid, you say goo:Id!
What is it?
Guidgen console is a command line application that generates X number of guids in the format you want - pasting them to the clipboard - if you wish. But that's not all! It also allows pipe usage to find and replace GUIDs or just run in the background as a reformatter. Oh, the number of times I just needed to convert from one format to another... Try going from code to SQL to LDAP and you'll understand, but if you do understand, then this app is for you.
Don't know what a GUID/UUID is? It's basically a "Globally Unique IDentifier" composed of 16 bytes of love. But don't take my word for it, read about it on wikipedia!
Looking for an online version? try Guidgen Online
Features
- It's FREE! - No cost! (you paid for your internet connection, right?)
- Guidgen works on the command line. No clunky windows app needed.
- Guidgen is a portable windows app (as long as you have the .NET framework - and who doesn't?)
- Can replace that antiquated Visual Studio Create GUID tool.
- Generate GUID(s) in any number of formats.
- Find GUID(s)
- Reformat GUID(s)
- Replace GUID(s) with new guids.
- Don't trust me? You can download the source code and build it yourself! (Get Visual Studio Express)
What Kind of GUIDs?
Guidgen can generate:
Zero Guids
- 00000000-0000-0000-0000-000000000000
Sequential Guids
- c2d0e2e8-2b60-11e1-b1ea-0024e8359915
- c2d0e2e9-2b60-11e1-b1ea-0024e8359915
- c2d0e2ea-2b60-11e1-b1ea-0024e8359915
Plain Vanilla Guids
- cf120f27-074c-43c0-80cb-57c1e3493c54
- f9018966-a96c-482c-b608-8695a95fdb0b
- a1065215-f596-445a-9e28-1aaba3a3e2be
Available Formats (See below for examples)
- N: 32 digits
- D: 32 digits with hyphens
- P: 32 digits enclosed in parentheses
- B: 32 digits enclosed in Brackets
- CP: c/c++ format
- GUID: c/c++ format with declaration
- DEFINE_GUID: c/c++ format with declaration
- OLECREATE: c++/COM format with declaration
- H: Hex byte array
- HC#: Hex byte array in c/c++/c# format
- HVB: Hex byte array in VB.NET format
- HLDAP: Hex byte array in LDAP format
- BASE64: Base64 of byte array - single instance
- BASE64C: Base64 of byte array - Combined bytes from all GUIDs
Usage
c:\> guidgen.exe /?
usage: GuidGen.exe [N|D|P|B|C|CP|H|HC#|HVB|HLDAP|BASE64|BASE64C] [/G|/S|/Z] [/nocopy] [/n (number)] [/u]
Output Formats:
N: 32 digits
87654321dcbafe1054326789abcdef01
D: 32 digits separated by hyphens (DEFAULT)
00000000-0000-0000-0000-000000000000
P: 32 digits separated by hyphens, enclosed in parentheses
{00000000-0000-0000-0000-000000000000}
B: 32 digits separated by hyphens, enclosed in brackets
[00000000-0000-0000-0000-000000000000]
C: c format
0x00000000,0x0000,0x0000,0x0000,0x00,0x00,0x00,0x00,0x00,0x00
CP: c format, enclosed in parentheses
{0x00000000,0x0000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00}}
GUID: c format, enclosed in parentheses
static const GUID <
How or where do I install it?
Install it where ever you want. I usually drop it into c:\windows\system32 so I can run it from anywhere.
How do I add it to Visual Studio Tools?
Goto: Tools > External Tools
Set the title, location where you saved it and any command line arguments.
Click the "Use Output Window"
Move it to the top.
Click ok.
I also add a quick key Ctrl-~
Goto: Tools > Options > Environment > Keyboard
Select "Tools.ExternalCommand1" (if you moved it to the top...)
Press the key combination.
Click ok.
Is there any copyright for the source?
I made this to use for myself. You are free to change, modify or corrupt your own version without any implied consent. But by using this app or the source code, you agree to not hold me liable for any damage, problems or issues caused by any and all usage.
Do you like it? Or have a comment, question or problem?
Send me a note. (let me know if I can publish your comments!)
There is a paypal link below if you really like it :) But, I don't expect it!
Michael A. McDaniel is a software developer living in Middle Tennessee. His mantra goes like this, "Work hard, play harder, and write some cool stuff in-between."
Download the App