+therealDamien Subscriber¹ Posted November 4, 2014 Subscriber¹ Share Posted November 4, 2014 something pretty simple but Im having a dumb moment. using openfiledialog to give user option to select a file once the choice is made, the program will copy the file to a preprogrammed directory using visual basic 2013 example My.Computer.FileSystem.CopyFile(choice ,"folder\files\") I have the program set to copy the file to a directory. but I need it to use the file name the user selected in the file dialog. how do I do this Link to comment Share on other sites More sharing options...
0 +therealDamien Subscriber¹ Posted November 4, 2014 Author Subscriber¹ Share Posted November 4, 2014 figured it out with System.IO.Path.GetFileName Link to comment Share on other sites More sharing options...
0 Dermot Posted December 23, 2014 Share Posted December 23, 2014 For future reference, Should find all you need below. http://msdn.microsoft.com/en-us/library/9706cfs5(v=vs.110).aspx Link to comment Share on other sites More sharing options...
Question
+therealDamien Subscriber¹
something pretty simple but Im having a dumb moment.
using openfiledialog to give user option to select a file
once the choice is made, the program will copy the file to a preprogrammed directory
using visual basic 2013
example
My.Computer.FileSystem.CopyFile(choice ,"folder\files\")
I have the program set to copy the file to a directory. but I need it to use the file name the user selected in the file dialog.
how do I do this
Link to comment
Share on other sites
2 answers to this question
Recommended Posts