moving files in .net

  • Thread starter Thread starter Shadowboxer
  • Start date Start date
S

Shadowboxer

ok, so I guess I know less about .net than I was willing to admit, I'm just
transitioning from vb6 and a something are different, some things are new...
so bear with me, and thanks in advance


How do I move a file in vb.net
How do I create a folder in vb.net


is there a file manipulation class somewhere that can do these or Do I have
to do a read/write copy manually.

thanks -J
 
Shadowboxer,
File handling in VB.net is very easy,
There are a lot of commands.
Search in MSDN for
the directory class
the directoryinfo class
the file class
the fileinfo class

By instance to move a file from a to b can be
file.move(pathA,pathB)

Create a folder
Directory.CreateDirectory(path)

But look first in the documentation before you do that, things like
overwriting a file is not nice when it is not intended.

And don't forget to import system.io

I hope this helps a little bit.
Cor
 
Back
Top