; 脚本开始 - 在这后面添加您的代码.
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=D:\autoit3\Aut2Exe\Icons\TC.ico
#AutoIt3Wrapper_outfile=分区格式转换工具.exe
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_UseAnsi=y
#AutoIt3Wrapper_Res_Comment=哦哟科技
#AutoIt3Wrapper_Res_Description=哦哟科技
#AutoIt3Wrapper_Res_Fileversion=1.1.0.0
#AutoIt3Wrapper_Res_LegalCopyright=Copyright @ 2008-2009 深圳哦哟科技
#AutoIt3Wrapper_Res_Field=公司|深圳哦哟科技
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#NoTrayIcon
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("磁盘分区格式转换工具", 380, 196, -1, -1)
$Group1 = GUICtrlCreateGroup("磁盘格式转换说明", 16, 16, 345, 110)
GUICtrlSetColor(-1, 0x42A5FF)
GUICtrlCreateLabel("NTFS格式是WinXp推荐使用的格式,具有文件加密,远程存储,", 30, 40, 330, 20)
GUICtrlCreateLabel("磁盘配额,恢复磁盘活动的日志记录,对单个文件而不仅仅对", 30, 60, 330, 20)
GUICtrlCreateLabel("文件夹设置权限等优点,但因DOS/WIN9X均不能识别,初级用户", 30, 80, 330, 20)
GUICtrlCreateLabel("不建议转换.", 30, 100, 330, 20)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateLabel("请根据自己的需要选择相应的分区进行转换,如果不需要请退出!", 20, 136, 339, 20)
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlCreateLabel("请选择要转换的分区:", 25, 165, 145, 245)
$button = GUICtrlCreateButton("转换", 220, 158, 60, 25)
$button1 = GUICtrlCreateButton("退出", 290, 158, 60, 25)
$combo1 = GUICtrlCreateCombo("", 145, 160, 50, 30)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$disk = DriveGetDrive("FIXED")
If Not @error Then
For $i = 1 To $disk[0]
GUICtrlSetData($combo1, $disk[$i], $disk[1])
Next
EndIf
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE, $button1
Exit
Case $button
$drive = GUICtrlRead($combo1)
If DriveGetFileSystem($drive) = "NTFS" Then
MsgBox(0, "系统快速设置工具", "此分区已是NTFS格式无需转换")
ContinueLoop
Else
RunWait(@ComSpec & ' /c convert ' & $drive & ' /fs:ntfs', '')
ProcessWaitClose("cmd.exe")
DirRemove("c:\recycler", 1)
FileDelete("c:\Recycled")
EndIf
Case $button1
Exit
EndSwitch
WEnd