www.pudn.com > SuperDLL2.zip > frmPathFilesVBW.frm
VERSION 5.00
Begin VB.Form frmPathFilesVBW
BorderStyle = 1 'Fixed Single
Caption = "Path & Files - VB - Windows"
ClientHeight = 7125
ClientLeft = 45
ClientTop = 330
ClientWidth = 8235
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 7125
ScaleWidth = 8235
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command7
Caption = "is Debug ?"
Height = 492
Left = 360
TabIndex = 4
Top = 3000
Width = 1932
End
Begin VB.TextBox Text12
Height = 288
Left = 2640
Locked = -1 'True
TabIndex = 32
TabStop = 0 'False
Top = 600
Width = 5172
End
Begin VB.TextBox Text11
Height = 288
Left = 2640
Locked = -1 'True
TabIndex = 30
TabStop = 0 'False
Top = 1320
Width = 2532
End
Begin VB.TextBox Text10
Height = 288
Left = 5280
Locked = -1 'True
TabIndex = 28
TabStop = 0 'False
Top = 1320
Width = 2532
End
Begin VB.CommandButton Command6
Caption = "CPU INFO"
Height = 492
Left = 360
TabIndex = 5
Top = 3720
Width = 1932
End
Begin VB.TextBox Text9
Height = 288
Left = 2640
Locked = -1 'True
TabIndex = 26
TabStop = 0 'False
Top = 2040
Width = 5172
End
Begin VB.TextBox Text8
Height = 288
Left = 2640
Locked = -1 'True
TabIndex = 24
TabStop = 0 'False
Top = 2760
Width = 5172
End
Begin VB.TextBox Text7
Height = 288
Left = 2640
Locked = -1 'True
TabIndex = 22
TabStop = 0 'False
Top = 3480
Width = 5172
End
Begin VB.CommandButton Command5
Caption = "Get Memory Status"
Height = 492
Left = 360
TabIndex = 6
Top = 4320
Width = 1932
End
Begin VB.CommandButton Command4
Caption = "is Key Down ?"
Height = 492
Left = 360
TabIndex = 3
Top = 2400
Width = 1932
End
Begin VB.CommandButton Command3
Caption = "Browse For Folder"
Height = 492
Left = 360
TabIndex = 2
Top = 1680
Width = 1932
End
Begin VB.CommandButton Command2
Caption = "Get All Drives Type && Free Space"
Height = 492
Left = 360
TabIndex = 7
Top = 4920
Width = 1932
End
Begin VB.TextBox Text6
Height = 288
Left = 2640
Locked = -1 'True
TabIndex = 20
TabStop = 0 'False
Top = 4920
Width = 5172
End
Begin VB.TextBox Text5
Height = 288
Left = 5280
Locked = -1 'True
TabIndex = 18
TabStop = 0 'False
Top = 4200
Width = 2532
End
Begin VB.TextBox Text4
Height = 288
Left = 2640
Locked = -1 'True
TabIndex = 16
TabStop = 0 'False
Top = 4200
Width = 2532
End
Begin VB.TextBox Text3
Height = 288
Left = 2640
Locked = -1 'True
TabIndex = 12
TabStop = 0 'False
Top = 5640
Width = 2532
End
Begin VB.TextBox Text2
Height = 288
Left = 5280
Locked = -1 'True
TabIndex = 11
TabStop = 0 'False
Top = 5640
Width = 2532
End
Begin VB.TextBox Text1
Height = 288
Left = 2640
Locked = -1 'True
TabIndex = 10
TabStop = 0 'False
Top = 6360
Width = 5172
End
Begin VB.CommandButton Command1
Caption = "Stop Flashing"
Enabled = 0 'False
Height = 492
Left = 360
TabIndex = 9
Top = 6240
Width = 1932
End
Begin VB.CommandButton Command13
Caption = "Windows About"
Height = 492
Left = 360
TabIndex = 1
Top = 960
Width = 1932
End
Begin VB.CommandButton Command12
Caption = "About"
Height = 492
Left = 360
TabIndex = 0
Top = 360
Width = 1932
End
Begin VB.CommandButton Command11
Caption = "Begin Flashing"
Height = 492
Left = 360
TabIndex = 8
Top = 5640
Width = 1932
End
Begin VB.Label Label12
Caption = "Windows Description"
Height = 252
Left = 2640
TabIndex = 33
Top = 360
Width = 5172
End
Begin VB.Label Label11
Caption = "Registered User"
Height = 252
Left = 2640
TabIndex = 31
Top = 1080
Width = 2532
End
Begin VB.Label Label10
Caption = "Organization"
Height = 252
Left = 5280
TabIndex = 29
Top = 1080
Width = 2532
End
Begin VB.Label Label9
Caption = "User \ Start Menu \ Programs"
Height = 252
Left = 2640
TabIndex = 27
Top = 1800
Width = 5172
End
Begin VB.Label Label8
Caption = "User Documents"
Height = 252
Left = 2640
TabIndex = 25
Top = 2520
Width = 5172
End
Begin VB.Label Label7
Caption = "User Desktop Directory"
Height = 252
Left = 2640
TabIndex = 23
Top = 3240
Width = 5172
End
Begin VB.Label Label6
Caption = "Temp Directory"
Height = 252
Left = 2640
TabIndex = 21
Top = 4680
Width = 5172
End
Begin VB.Label Label5
Caption = "System Directory"
Height = 252
Left = 5280
TabIndex = 19
Top = 3960
Width = 2532
End
Begin VB.Label Label4
Caption = "Windows Directory"
Height = 252
Left = 2640
TabIndex = 17
Top = 3960
Width = 2532
End
Begin VB.Label Label3
Caption = "User Name"
Height = 252
Left = 2640
TabIndex = 15
Top = 5400
Width = 2532
End
Begin VB.Label Label2
Caption = "Computer Name"
Height = 252
Left = 5280
TabIndex = 14
Top = 5400
Width = 2532
End
Begin VB.Label Label1
Caption = "Windows Version"
Height = 252
Left = 2640
TabIndex = 13
Top = 6120
Width = 5172
End
End
Attribute VB_Name = "frmPathFilesVBW"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
StopFlash Me
Command1.Enabled = False
Command11.Enabled = True
End Sub
Private Sub Command11_Click()
Flash Me
Command1.Enabled = True
Command11.Enabled = False
End Sub
Private Sub Command12_Click()
MsgBox GetAbout(App), vbInformation, "About " & App.Title
End Sub
Private Sub Command13_Click()
ShowAbout App, Me
End Sub
Private Sub Command2_Click()
Dim qwe As String, q As String, t As Long, w As Long, f As Currency
For t = 0 To 25
q = Chr$(Asc("A") + t) & ":"
w = DriveType(q)
If (w >= 2 And w <= 6) Or w = 0 Then
qwe = qwe & vbCrLf & "Drive " & q & vbTab & "IS : "
qwe = qwe & DriveTypeS(q) & Space$(10 - Len(DriveTypeS(q)))
f = FreeSpace(q)
If f >= 0 Then
qwe = qwe & vbTab & "Free Space : " & Calc(f)
ElseIf w = 2 Or w = 5 Then
qwe = qwe & vbTab & "NO DISC"
End If
End If
Next t
MsgBox Right$(qwe, Len(qwe) - 2), vbInformation, "Drives Type & Free Space"
End Sub
Private Sub Command3_Click()
MsgBox BrowseForFolder(Me, "title", ROOTDIR_CUSTOM, "c:\", "c:\windows", False, , "NewOk"), vbInformation, "Folder Selected"
MsgBox BrowseForFolder(Me), vbInformation, "Folder Selected"
End Sub
Private Sub Command4_Click()
frmKeyDown.Show vbModal, Me
End Sub
Private Sub Command5_Click()
Dim qwe As MemoryStatus, q As String
qwe = GetMemory
q = "Total Memory :" & vbTab & Calc(qwe.TotalPhys) & vbCrLf _
& "Free Memory :" & vbTab & Calc(qwe.AvailPhys) & vbCrLf _
& "Memory Load : " & vbTab & Round(qwe.MemoryLoad2, 2) & "%"
MsgBox q, vbInformation, "Memory Status"
End Sub
Private Sub Command6_Click()
Dim qwe As CPU_INFO, qaz As String
qwe = GetCPU
qaz = qaz & "Clock Speed :" & vbTab & qwe.ClockSpeed & vbCrLf
qaz = qaz & "Manufacturer :" & vbTab & qwe.Manufacturer & vbCrLf
qaz = qaz & "CPU Type :" & vbTab & qwe.CPU_Type & vbCrLf
qaz = qaz & "Other Info :" & vbTab & qwe.OtherInfo
MsgBox qaz, vbInformation, "CPU INFO"
End Sub
Private Sub Command7_Click()
MsgBox IsDebug
End Sub
Private Sub Form_Load()
Text1.Text = GetWindowsVersion.dwFullTextV
Text2.Text = GetComputerName
Text3.Text = GetUserName
Text4.Text = GetWindowsDir
Text5.Text = GetSystemDir
Text6.Text = GetTempDir
Text7.Text = GetSpecialFolder(DIR_USER_DESKTOP)
Text8.Text = GetSpecialFolder(DIR_USER_MY_DOCUMENTS)
Text9.Text = GetSpecialFolder(DIR_USER_START_MENU_PROGRAMS)
Text10.Text = GetOrganization
Text11.Text = GetRegisteredUser
Text12.Text = GetWindowsDescription
End Sub
Private Function Calc(ByVal var1 As Currency) As String
Dim z As Byte, q As String
q = ""
z = 0
While var1 >= 1000 And z < 3
var1 = var1 / 1024
z = z + 1
Wend
q = q & Round(var1, 2)
If z = 3 Then
q = q & " G."
ElseIf z = 2 Then
q = q & " MB"
ElseIf z = 1 Then
q = q & " KB"
ElseIf z = 0 Then
q = q & " Bytes"
End If
Calc = q
End Function
Private Sub Form_Unload(Cancel As Integer)
frmMenu.Show
End Sub