SolvedStoring a file into the application

Posts 1–4 of 4 · Page 1 of 1
Storing a file into the application
so this hack :


have 4 cheat engine CETRAINERS inside it. and when you click any label from these the CETRAINER will be stored into the %appdata%/temp folder and when the applications is closed. the stored CETRAINERS gets deleted.
so yeah my question is. how to do that?
. @Sazor98
First, you'll need to have the CETrainers stored in your application's resources, then extract them to the TEMP folder.
Code:
Dim B() As Byte = My.Resources.YourFileName

System. IO.File.WriteAllBytes(_
"where the file will be save/path", B)
Now, to delete the files before closing your form
Add this to the FormClosing event.

Code:
Dim FTD As String
FTD = "C:\File.exe" 'Filetodelete

If System. IO.File.Exists(FTD) = True Then
System. IO.File.Delete(FTD)
End If
Quote Originally Posted by Mayion View Post
. @Sazor98
First, you'll need to have the CETrainers stored in your application's resources, then extract them to the TEMP folder.
Code:
Dim B() As Byte = My.Resources.YourFileName

System. IO.File.WriteAllBytes(_
"where the file will be save/path", B)
Now, to delete the files before closing your form
Add this to the FormClosing event.

Code:
Dim FTD As String
FTD = "C:\File.exe" 'Filetodelete

If System. IO.File.Exists(FTD) = True Then
System. IO.File.Delete(FTD)
End If
Thanks a bunch.
#Solved.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us