All Forums >> [Scripting] >> Post a VBScript >> Generating a GUID Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
While developing my new scripting component, I came across the problem of generating GUIDs. If it was going to be a component like any other I would have just used the WSC wizard to create one. But since I have multiple ProgID and multiple components all in one file the wizard just wasn't going to cut it. I tried searched the MSDN archives and couldn't find a tool that could generate one (without having to download some ungodly SDK package). Little did I know that right under my nose there was functionality available:
Isn't it strange that the simplest problems are sometimes the hardest to solve?
I use this functionality for a file renaming script I created. You have to recreate the object each time to get a new GUID. (Of course I could be missing something)