Hi, i would like to move a selected files to a folder using vb.net.
I currently have this code
If File.Exists("C: \Documents and Settings\055949 x\transfer\text .txt") And Not File.Exists("C: \Documents and Settings\055949 x\transfer\text .txt") Then
File.Move("C:\D ocuments and Settings\055949 x\transfer\text .txt", "C:\Documen ts and Settings\055949 x\Desktop\AES file\transfer\t ext.txt")
Label1.Text = ("File moved!")
Else
Label1.Text = ("File does not exist")
End If
How to i make it sure that i will be able to move different files without having to write the full directory of the file? I need to move the files that had been display on gridview.
p.s I'm using vb.net 2005
I currently have this code
If File.Exists("C: \Documents and Settings\055949 x\transfer\text .txt") And Not File.Exists("C: \Documents and Settings\055949 x\transfer\text .txt") Then
File.Move("C:\D ocuments and Settings\055949 x\transfer\text .txt", "C:\Documen ts and Settings\055949 x\Desktop\AES file\transfer\t ext.txt")
Label1.Text = ("File moved!")
Else
Label1.Text = ("File does not exist")
End If
How to i make it sure that i will be able to move different files without having to write the full directory of the file? I need to move the files that had been display on gridview.
p.s I'm using vb.net 2005
Comment