whats your error?
So, I'm making a program that moves files. But, i have an error.
I can have it select more than 1 file, but now how to make it move more than 1...
AND
Im using a folder browser for the location to be moved, and it needs to to have the file name after it, and if you select more than 1, then it becomes a problem...
Heres my current code:
[php] Dim path As String = TextBox1.Text
Dim destination As String = TextBox2.Text
If File.Exists(path) And Not File.Exists(destination) Then
File.Move(path, destination)
MsgBox("File Moved Successfully", MsgBoxStyle.Information, "Sucess")
Else
MsgBox("The file(s) already exist in the current location.", MsgBoxStyle.Critical, "Error")
End If[/php]
Hmmmm...
Any Help?
Last edited by Cryptonic; 01-20-2011 at 07:02 PM.
whats your error?
Last edited by willrulz188; 01-20-2011 at 07:24 PM.
Question ALL statements! ?[img]https://i360.photobucke*****m/albums/oo45/blood188/Untitled-3.jpg?t=1284590977[/img]You're in denial that you're in denial. ?
Ok...
Though, the file doesn't exist...
I get nothing wrong...
try
Code:Dim path As String = TextBox1.Text Dim destination As String = TextBox2.Text If IO.File.Exists(path) And Not IO.File.Exists(destination) Then IO.File.Move(path, destination) MsgBox("File Moved Successfully", MsgBoxStyle.Information, "Sucess") Else MsgBox("The file(s) already exist in the current location.", MsgBoxStyle.Critical, "Error") End If
Last edited by willrulz188; 01-20-2011 at 07:46 PM.
Question ALL statements! ?[img]https://i360.photobucke*****m/albums/oo45/blood188/Untitled-3.jpg?t=1284590977[/img]You're in denial that you're in denial. ?
If i'm understanding you right, just give each file an assigned textbox.
How is your code even readable? O__o Black background ftw?
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
Well, first off, I'm trying to make it where you don't have to put the filename in the second textbox. If i put the filename in the textbox, that error wouldn't happen. Which should fix the other errors because if you select more than 1 file, you would have to enter more than 1 filename.. that or it wouldn't work at all...
Oops, I posted a solution in your other thread, didn't realize you made another thread /QQ
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)