- Dec
- 238
- 2
I can (and often do) generate a GUID and get it into a variable this way:
set xyzzy=%@execstr[uuidgen.exe]
Or, as often as not, like this:
set xyzzy=%@upper[%@replace[-,,%@execstr[uuidgen.exe]]]
But of course that calls for always having UUIDGEN on tap. If there's some other tool for this other than ActiveState's Perl, with its Win32 extensions, I haven't run across it.
Any chance of ever having a variable function such as %@guid[], which would immediately generate it? The frosting on the cake would be switches for returning the GUID in upper- or lower-case, and with or without hyphens separating the number groups.
set xyzzy=%@execstr[uuidgen.exe]
Or, as often as not, like this:
set xyzzy=%@upper[%@replace[-,,%@execstr[uuidgen.exe]]]
But of course that calls for always having UUIDGEN on tap. If there's some other tool for this other than ActiveState's Perl, with its Win32 extensions, I haven't run across it.
Any chance of ever having a variable function such as %@guid[], which would immediately generate it? The frosting on the cake would be switches for returning the GUID in upper- or lower-case, and with or without hyphens separating the number groups.