Public Function Exe_W(ByVal fN As String) As Boolean
Dim f As Integer
f = FreeFile
Open fN For Output As #f
Close #f
Exe_W = True
End Function
Public Function WirteFile(ByVal ResID As String, ByVal ResType As String, ByVal PathFile As String) As Boolean
MyExe = LoadResData(ResID, ResType)
If Exe_W(PathFile) Then
Dim f As Integer
f = FreeFile
Open PathFile For Binary As #f
Put #f, , MyExe
Close #f
WirteFile = True
Else
WirteFile = False
End If
End Function
'shell
'IF WirteFile("MyExe","RES","F:\MyExe.exe") Then