Move File And Folder

brucelim80

Active member
Joined
Apr 20, 2006
Messages
35
Programming Experience
Beginner
hi can anyone help me on this? I am a newbie of Vb.net.
Does VB.net has the ability to MOVE file from one location to another location?
For example

I have a folder call dcu in the c: drive
DCU folder consist of 200 text files.


I want to write a program that automatically detect all the txt files and move them from this location to another PC c drive according to a schedule set in the system

Can it be done?

If possible, what is the command to use?



Thank you,

Regards,
Bruce
 
For Each Element As String In Directory.GetFiles()
File.Move(Element, "NewLocationAsString")
Next Element

is how you would move all the files
 
Back
Top