|
hi friends,
i need to get system information and mac address in vb6.0...
plz help me..
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
Look here,
MAC Address in VB6[^]
google to the rescue again
I don't speak Idiot - please talk slowly and clearly
'This space for rent'
Driven to the arms of Heineken by the wife
|
|
|
|
|
thank u for reply...
i need harddisk serial number also...
how to get??
Any possible in vb 6.0
Yours,
KaNNaN
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
Mail To : foreverkans@gmail.com
|
|
|
|
|
Did andy's "google to the rescue" line not give you hint?
Also, search this form, i think this was discussed about a month ago.
|
|
|
|
|
From the depths of Google[^]
This should do it.
As Dave said previously, these were very simple to find simply by using your questions.
I don't speak Idiot - please talk slowly and clearly
'This space for rent'
Driven to the arms of Heineken by the wife
|
|
|
|
|
Use WMI. Also, the HD serial number changes every time the disk is formatted.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Ok, i know it sounds ridiculous, but i am stuck here.
I have 2 spineditors.The purpose is to make an SQL statement.
The first(a) spineditor takes values from 1 to 12 and represents the months.
The second(b) spineditor takes values from 1 to 5 and represents the latitude of the value selected in a (the number of months above and below the first spineditor).
For example.
If on (a) i choose 1(JANUARY) and on b 2(which means i want to get 2 months below JANUARY and 2 months above JANUARY), i want the SQL stetement to be "SELECT * from TABLE WHERE (MONTH BETWEEN 11 AND 12) OR (MONTH BETWEEN 1 AND 3)"
In other words i want to select all the months from NOVEMBER to MARCH
I hope you understand what i am saying here
|
|
|
|
|
What does the user do if he wants November through February?
And no, you didn't post your actual question - you merely gave us some criteria.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
The first spineditor is where you choose the month.The second just tells the programm to broaden the criteria of the month by so many months (spineditor b).
So if he wants just November he chooses 11 on the first spineditor.But if he wants also October and December he will put 1 in the second spineditor
|
|
|
|
|
sounds like you can only cope with an odd number of months; how about choosing October+November???
|
|
|
|
|
You didn't answer my question. Your sql query is going to break if the user selects November and anything larger than 2 for the month span.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Why will it break ?
With the solution i currently have, if the user puts 11(November) and 2 for the span, i get the following numbers, after a little math :
9,10,11,12,1
Then i just make an SQL like "WHERE MONTH IN (9,10,11,12,1)"
It actually works now.
|
|
|
|
|
Find out the months that you want to select, from your example, -1, 0, 1, 2, 3. Then check for lower and upper boundaries, add or minus 12 accordingly. So in your example they would be 11, 12, 1, 2, 3.
Then Select Where Month In (11, 12, 1, 2, 3).
|
|
|
|
|
Yeah that gave my brain a start.
Solved.Thanks
|
|
|
|
|
I am creating an application that will get the CPU utilization for each process similar to the TaskManager. I have created the listing below. When the procedure prints out to a console window the CPU percent is always zero. When I debug the code and step through the code line by line the procedure prints the correct CPU percentage. Why does running the code does not work? While stepping through the code works? Thanks for any help.
Dim poc() As Process = Process.GetProcesses()
Dim PCounter As New PerformanceCounter
PCounter.CategoryName = "Process"
PCounter.CounterName = "% Processor Time"
For i As Integer = 0 To poc.Length - 1
If poc(i).ProcessName.ToString <> "system" Or poc(i).ProcessName.ToString <> "idle" Or poc(i).ProcessName.ToString <> "svchost" Then
Try
'PCounter.InstanceName = "_Total"
PCounter.InstanceName = poc(i).ProcessName
Console.WriteLine(PCounter.NextValue.ToString & " " & poc(i).ProcessName & " " & poc(i).MainModule.FileName & " " & poc(i).MainWindowTitle)
Catch ex As Exception
'Console.WriteLine(poc(i).ProcessName.ToString & " " & ex.Message)
End Try
End If
Next
modified on Tuesday, December 29, 2009 11:52 AM
|
|
|
|
|
Maybe because it takes time to step through the code, and in that time, the processes have an opportunity to accumulate some data, as opposed to writing it immediately to the console.
Try writing it to the console once per second.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Thanks for the direction. I put a Sleep method in the code
dblCPU = PCounter.NextValue.ToString
Sleep(1)
dblCPU = PCounter.NextValue.ToString
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
|
|
|
|
|
Ummm, the Threading.Thread object has a Sleep method in it. Also, I think I remember seing somewhere that setting anything less that 25 millsecs results in a sleep period of 25 millisecs.
Lastly, if someone helps you here and provides the right answer (or a good one) vote the answer as a good answer.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
|
what is the best Lateral program for make installer that is better and more Supple???
M.Alizadeh
|
|
|
|
|
.Net lets you create set up and deployment projects for your application. You can also read about ClickOnce deployement in case it suites your application.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
.Net setup and Deployment /Click Once is the best and you can also use Install shield but will prefer
.Net setup
Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it
|
|
|
|
|
Dear All
Anybody explain, i have two defrend databse (Foxpro,Sql). i have two table in defrend databse thats are same manner.One table all datas pick one DataSet , now i want simply to insert this Datset to Other Databse Table.
i want Only without Useing Loops. is it Possible...?
Kindly reply Me...
Thanx For advance
|
|
|
|
|
SSIS would have been a good choice here. Although you can also do this using the SqlBulkCopy class in case you are inserting data into the SQL database.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
thanx for Your Valuable Information.
Dear frnd is it Posiible to Accssdatabase table also..?
supose i have one dataset thats insert into AccssDatabase..is it possible...
Kindly reply me
|
|
|
|