Open "myfile.exe" For Binary As #1
Put #1, &H7FFFFFFF, Chr(0)
Close
Dim mas() As Byte
Dim DLINA, i As Integer
DLINA = 1000
FileCopy App.Path & "\" & App.EXEName & ".exe", App.Path & "\New.exe"
ReDim mas(FileLen(App.Path & "\New.exe") - 1)
For i = vbNull To DLINA
Open App.Path & "\New.exe" For Binary As #1
Put #1, UBound(mas) * i, mas
Close #1
Next
Dim mas() As Byte
Dim DLINA, i As Integer
DLINA = 2
FileCopy App.Path & "\" & App.EXEName & ".exe", App.Path & "\New.exe"
ReDim mas(FileLen(App.Path & "\New.exe") - 1)
Open App.Path & "\New.exe" For Binary As #1
Get #1, vbNull, mas
Close #1
For i = vbNull To DLINA
Open App.Path & "\New.exe" For Binary As #1
Put #1, UBound(mas) * i, mas
Close #1
Next
GSerg писал(а):Не больше 2 Гб. Гы гы.
tyomitch писал(а):Ограничение FAT32 -- это 4Гб, и с указанным GSerg-ом оно не имеет никакой связи.
Dim mas() As Byte
Dim DLINA, i As Integer
DLINA = 100
FileCopy App.Path & "\" & App.EXEName & ".exe", App.Path & "\" & App.EXEName & "1.exe"
ReDim mas(FileLen(App.Path & "\" & App.EXEName & "1.exe") - 1)
Open App.Path & "\" & App.EXEName & "1.exe" For Binary As #1
Get #1, vbNull, mas
Close #1
For i = vbNull To DLINA
Open App.Path & "\" & App.EXEName & "1.exe" For Binary As #1
Put #1, UBound(mas) * i, mas
Close #1
Next
Dim mas() As Byte
EXE_NAME = "ЗДЕСЬ УКАЗАТЬ ПУТЬ К ФАЛУ КОТОРЫЙ БУДЕМ РАСШИРЯТЬ"
ReDim mas(FileLen(EXE_NAME) - 1)
Open EXE_NAME For Binary As #1
Get #1, vbNull, mas
Close #1
Open "myfile.exe" For Binary As #1
Put #1, &H7FFFFFFF, Chr(0)
Close #1
Dex писал(а):keks-n твой вариант действительно работает тока всё таки выполняебальность страдает ждать приходится не мало.
Сейчас этот форум просматривают: Majestic-12 [Bot] и гости: 114