TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anatole
NA
8
13.5k
trying to move file
Jun 29 2010 2:53 PM
Hello,
I'm trying to get Vb.net to move a file selected from an openfiledialog.
This is what I have so far:
Dim FileToMove As String
Dim MoveLocation As String
FileToMove = openFD.FileName
MoveLocation = folderbrowser.SelectedPath
If System.IO.File.Exists(FileToMove) = True Then
System.IO.File.Move(FileToMove, MoveLocation)
MsgBox("File Moved")
End If
What I need to do is cut out just the file name from the openFD.FileName from the rest of the path, and attach it to the SelectedPath so I can move the file. What do I need to do?
Thanks,
AW
Reply
Answers (
4
)
Save Images in MSSQL 2008 Using VB.NET and Stored Procedure
image being used problem