anyone have a clue on how to create a GUID or UUID?

Alternatively, I have a DOS program that will write a GUID to STDOUT, how can I update a field with the results of this DOS program?