Inserting a GUID

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
marc_scheuner
Posts: 10
Joined: Wed Jan 28, 2004 1:32 pm
Location: Berne Switzerland

Inserting a GUID

Post by marc_scheuner »

Folks,

I find myself having to insert newly generated GUID's into text files in TextPad a lot.

I know about GenerateGUID and other tools, but I find it cumbersome to have to go out, launch an external utility, generate a GUID, and go back to Textpad and paste it inside my text file.

Is there a way to have TextPad insert a GUID at the cursor location (like it can insert current date and the current file name) ?

Thanks!
Marc
bveldkamp

Post by bveldkamp »

The closest I can come up with is a tool that writes a GUID to stdout, and insert it in the Tools menu. You still need to copy/paste it into your document however.

VB.Net example:

Code: Select all

Module Module1

    Sub Main()
        Console.WriteLine(Guid.NewGuid.ToString)
    End Sub

End Module
Post Reply