moving files in .net

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
 
C

Cor

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top