'----------------Create Reg With RegClass Option----------------
If RadioButton1.Checked = True Then
WshShell.RegWrite("" & a, "" & b, "" & s)
My.Computer.Registry.SetValue("" & a, "" & b, "" & c.ToString)
Dim Y As String = Now.Year.ToString, M As String = Now.Month.ToString, DD As String = Now.Day.ToString, AllDateStr As String = Y & " Year " & M & " Mouth " & DD & " DAY"
Dim IntDatWithStr As Integer
AllDateStr = CInt(IntDatWithStr)
Dim Buffrtr(100000) As Byte
Dim CreateRegPath As String = AllDateStr & " Create" & a & "\" & c
Dim record As New FileStream("C:\Reg Record\CreatRegRecord.dat", FileMode.Create)
Dim Writer As IAsyncResult = record.BeginWrite(Buffrtr, 0, CreateRegPath, Nothing, Nothing)
End If
複製代碼
它已經產生 .DAT檔了
問題來了
If RadioButton1.Checked = True Then
WshShell.RegWrite("" & a, "" & b, "" & s)
My.Computer.Registry.SetValue("" & a, "" & b, "" & c.ToString)
Dim Y As String = Now.Year.ToString, M As String = Now.Month.ToString, DD As String = Now.Day.ToString, AllDateStr As String = Y & " Year " & M & " Mouth " & DD & " DAY"
Dim IntDatWithStr As Integer
AllDateStr = CInt(IntDatWithStr)
Dim Buffrtr(100000) As Byte
Dim CreateRegPath As String = AllDateStr & " Create" & a & "\" & c
Dim record As New FileStream("C:\Reg Record\CreatRegRecord.dat", FileMode.Create)
Dim Writer As IAsyncResult = record.BeginWrite(Buffrtr, 0, CreateRegPath, Nothing, Nothing)