Elaborate?
When a file already exists at the location, how do we bypass that error and overrite that file?
Last edited by [Project Recon]Porhaxn; 06-19-2010 at 01:07 PM.
Elaborate?
for starting a program after you click a button use
for moving and copying files you have to look up the cmd commands for that. Sorry if the code above has a few errors in it. I havent done VB in a long time!Code:Shell("cmd.exe /c [program path and name (i.e. C:\Program Files\run.exe)]")
Delete the Initial File first....
[php]
Dim FileToDelete as New FileInfo("FilePath\FileName.Extension")
FileToDelete.Delete()
[/php]
Then
[php]
If System.IO.File.Exists("Filepath/FileToMove.Extension) = True Then
System.IO.File.Move("Filepath/FileToMove.Extension", "Path To Move File")
End If
[/php]
If you want to go a-little further you can use P/Invoke and Force Delete the File first...But in either case, delete the file then move to path...
By the way, that is exactly how windows works with overwriting, it just moves quick, when you get the dialog box or message box that says "would you like to overwrite?" what it is actually saying is, would you like to delete the original file and replace it with this one. So manually delete file then move
Last edited by NextGen1; 06-19-2010 at 02:33 PM.
[Project Recon]Porhaxn (06-19-2010)
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
NextGen1 (06-20-2010)
What Nextgen told you, is kinda logical if you actually think about it. So, good solution :]
NextGen1 (06-20-2010)
I have 0 time on my hands :P and I still make time to do my "job"
Jason (06-20-2010)
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)
NextGen1 (06-20-2010)