By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,985 Members | 2,884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,985 IT Pros & Developers. It's quick & easy.

cut and paste

P: 6
I guys



I am a beginner for Vb.net I need to cut a file from selected location (c:\ranil\test.txt) and shold be past it another location(c:\backup\test.txt) and this should be happen when click command button.I use visual studio 2008

thanks
Mar 18 '14 #1
Share this Question
Share on Google+
5 Replies


P: 1
Try This Link it may help you
dreamincode.net/forums/topic/46964-how-to-copypaste-files/
Mar 18 '14 #2

P: 6
thanks for your quick reply but I cant see anything trough your link
Mar 18 '14 #3

Frinavale
Expert Mod 5K+
P: 9,731
There is a File.Move Method.

If you need to copy the file to several locations, use the File.Copy Method to copy it to all the desired locations and then the File.Delete Method

-Frinny
Mar 18 '14 #4

P: 6
I tried to write cuy and past but I cant find file system object

Attached Images
File Type: jpg aaa.jpg (40.8 KB, 9797 views)
Mar 19 '14 #5

Frinavale
Expert Mod 5K+
P: 9,731
Oh it is under the System.IO namespace.
So either add Import System.IO at the top of the .vb file you are working in or specify the namespace inline like this: System.IO.File.Move(...)

-Frinny
Mar 19 '14 #6

Post your reply

Sign in to post your reply or Sign up for a free account.