Click here to Skip to main content
16,006,535 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Strings with hyperlinks Pin
Joshua Quick16-Jan-06 14:24
Joshua Quick16-Jan-06 14:24 
GeneralRe: Strings with hyperlinks Pin
tibmark16-Jan-06 18:11
tibmark16-Jan-06 18:11 
GeneralRe: Strings with hyperlinks Pin
Joshua Quick16-Jan-06 18:33
Joshua Quick16-Jan-06 18:33 
QuestionCalling DLL Function that expects pointer to pointer Pin
Jon Trauntvein16-Jan-06 11:33
Jon Trauntvein16-Jan-06 11:33 
AnswerRe: Calling DLL Function that expects pointer to pointer Pin
Joshua Quick16-Jan-06 15:43
Joshua Quick16-Jan-06 15:43 
GeneralRe: Calling DLL Function that expects pointer to pointer Pin
Jon Trauntvein17-Jan-06 10:13
Jon Trauntvein17-Jan-06 10:13 
GeneralRe: Calling DLL Function that expects pointer to pointer Pin
Joshua Quick17-Jan-06 11:01
Joshua Quick17-Jan-06 11:01 
QuestionGet HDD SerialNumber in VB Script Pin
snalion16-Jan-06 9:32
snalion16-Jan-06 9:32 
Hello,
I'm fairly new to scripting in VB and especially using the WMI classes. One of the things I would like to do is get the Hard drive Serial Number. I am trying to use the Win32_PhysicalMedia but in vain. This is my code:

strComputer = "."
Set objWMIService = GetObject( _
"winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery( _
"Select * from Win32_PhysicalMedia")

If Err.Number = 0 Then
For Each objItem in colItems
Wscript.Echo "Serial: " & objItem.SerialNumber
Next
Else
MsgBox "The serial number could not be returned."
Err.Clear
End If


I know I'm missing something. Can someone please help me with this? Any help would be appreciated. Thank you!
GeneralRe: Get HDD SerialNumber in VB Script Pin
Guffa16-Jan-06 10:52
Guffa16-Jan-06 10:52 
AnswerRe: Get HDD SerialNumber in VB Script Pin
Dave Kreskowiak16-Jan-06 11:06
mveDave Kreskowiak16-Jan-06 11:06 
GeneralRe: Get HDD SerialNumber in VB Script Pin
snalion17-Jan-06 5:41
snalion17-Jan-06 5:41 
GeneralRe: Get HDD SerialNumber in VB Script Pin
Dave Kreskowiak17-Jan-06 11:48
mveDave Kreskowiak17-Jan-06 11:48 
QuestionUnhandeled exception error Pin
shakizil16-Jan-06 9:31
shakizil16-Jan-06 9:31 
GeneralRe: Unhandeled exception error Pin
Guffa16-Jan-06 10:55
Guffa16-Jan-06 10:55 
Question"Declaration expected" Pin
kenn_rosie16-Jan-06 7:41
kenn_rosie16-Jan-06 7:41 
AnswerRe: "Declaration expected" Pin
Guffa16-Jan-06 8:45
Guffa16-Jan-06 8:45 
GeneralRe: "Declaration expected" Pin
kenn_rosie16-Jan-06 8:55
kenn_rosie16-Jan-06 8:55 
GeneralRe: "Declaration expected" Pin
Guffa16-Jan-06 10:56
Guffa16-Jan-06 10:56 
GeneralRe: "Declaration expected" Pin
kenn_rosie16-Jan-06 12:19
kenn_rosie16-Jan-06 12:19 
AnswerRe: "Declaration expected" Pin
Guffa16-Jan-06 13:09
Guffa16-Jan-06 13:09 
GeneralRe: "Declaration expected" Pin
kenn_rosie16-Jan-06 13:21
kenn_rosie16-Jan-06 13:21 
AnswerRe: "Declaration expected" Pin
Guffa19-Jan-06 21:34
Guffa19-Jan-06 21:34 
QuestionProblem running Windows Service Pin
luciodandrea16-Jan-06 6:15
luciodandrea16-Jan-06 6:15 
GeneralRe: Problem running Windows Service Pin
bskirkman16-Jan-06 11:26
bskirkman16-Jan-06 11:26 
GeneralRe: Problem running Windows Service Pin
luciodandrea17-Jan-06 0:36
luciodandrea17-Jan-06 0:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.