GUID

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to generate text files with uniqiue file names... how can I get VB.NEt
to give me GUID number that I can use in my filename? or is there a better
way of getting unique file names ?

Thanks in advance
 
Use Guid.NewGuid()

I need to generate text files with uniqiue file names... how can I get
VB.NEt
to give me GUID number that I can use in my filename? or is there a better
way of getting unique file names ?

Thanks in advance
 
* "=?Utf-8?B?aHBsbG95ZA==?= said:
I need to generate text files with uniqiue file names... how can I get VB.NEt
to give me GUID number that I can use in my filename? or is there a better
way of getting unique file names ?

'System.IO.Path.GetTempFileName' if it's for a temporary file.

- or -

\\\
Dim g As Guid = Guid.NewGuid()
g.ToString()
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top