Joe Strazzere - All Things Quality

Visit my new blog at http://strazzere.blogspot.com/


December 1, 2005 - WinTask - GetGUID

Posted in WinTask

'
' GetGUID - Get a GUID (from the http://www.guidgen.com/Index.aspx site)
'
' Author: Joe Strazzere
'

Function GetGUID$()
  Local TempFile$
  Local Var$

  TempFile$="c:\jsstemp.txt"

  If Exist(TempFile$) then
      Kill(TempFile$)
  End If

  External("urlmon.dll", "URLDownloadToFileA", 0, "http://www.guidgen.com/Index.aspx", TempFile$, 0, 0)

  SetReadPos(TempFile$,0)
  Read(TempFile$, Var$)

  GetGUID$=ExtractBetween$(Var$,"class="+Chr$(34)+"yourguid"+Chr$(34)+">",excluded,"",excluded)

EndFunction

 

MsgBox(GetGUID$())



Any comments on this article?
Email Me


<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Problems cannot be solved by the same level of thinking that created them. - A. Einstein

Search This Site

Translate This Site

RSS Feed

Subscribe

Twitter

@jstrazzere

Categories

Life
QA
Sports
Tools
WinTask
Work in General

What I'm Reading Now