frmformat.frm

来自「大量优秀的vb编程」· FRM 代码 · 共 39 行

FRM
39
字号
VERSION 5.00
Begin VB.Form frmFormat 
   Caption         =   "格式化磁盘"
   ClientHeight    =   1452
   ClientLeft      =   60
   ClientTop       =   348
   ClientWidth     =   5268
   Icon            =   "frmFormat.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   1452
   ScaleWidth      =   5268
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton cmdFormat 
      Caption         =   "格式化磁盘"
      Default         =   -1  'True
      Height          =   495
      Left            =   1560
      TabIndex        =   0
      Top             =   360
      Width           =   1335
   End
End
Attribute VB_Name = "frmFormat"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdFormat_Click()
Dim sBuffer As String, Windir As String, Procs As String, X
Dim lResult As Long

sBuffer = String$(255, 0)
lResult = GetWindowsDirectory(sBuffer, Len(sBuffer))

Windir = Trim(sBuffer)

Procs = Left(Windir, lResult) & "\rundll32.exe shell32.dll,SHFormatDrive"

'    Call CenterDialog("Format - 3

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?