469,625 Members | 1,444 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

Using FileSystemObject in VB.NET

I'm trying to write a little VB.NET script in an ASP.NET web page that will
create folders, move files, etc... pretty much everything you can expect to
do using the FileSystemObject library.

Is this possible in .NET?

If so, how do I do it?

I've tried:

Dim fso as new system.io.filesystemobject, but filesystemobject doesn't show
up in the Intellisense, nor does it work. I've included the scrunn.dll in
my project, but still no dice.

I'd rather not do the whole Server.CreateObject("FileSystemObject") method,
because then I lose the intellisense in my development environment... but if
you can point me to a good list of methods and properties, that might be the
way I have to go.

Thanks so much for your help,
Nov 19 '05 #1
2 3613
RCS
Look in System.IO

I think System.IO.Directory and System.IO.File should handle most of what
you need...

HTH

"Luis Esteban Valencia" <le********@avansoft.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm trying to write a little VB.NET script in an ASP.NET web page that
will
create folders, move files, etc... pretty much everything you can expect
to
do using the FileSystemObject library.

Is this possible in .NET?

If so, how do I do it?

I've tried:

Dim fso as new system.io.filesystemobject, but filesystemobject doesn't
show
up in the Intellisense, nor does it work. I've included the scrunn.dll in
my project, but still no dice.

I'd rather not do the whole Server.CreateObject("FileSystemObject")
method,
because then I lose the intellisense in my development environment... but
if
you can point me to a good list of methods and properties, that might be
the
way I have to go.

Thanks so much for your help,

Nov 19 '05 #2
Look into using System.IO.DirectoryInfo
The FileSystemObject doesn't exist in .Net

You might want to look into using System.IO.DriveInfo,
System.IO.Directory, and other classes in System.IO.

http://www.csharpfriends.com/quickst...pace=System.IO

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

"Luis Esteban Valencia" <le********@avansoft.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I'm trying to write a little VB.NET script in an ASP.NET web page that will
create folders, move files, etc... pretty much everything you can expect to
do using the FileSystemObject library.

Is this possible in .NET?

If so, how do I do it?

I've tried:

Dim fso as new system.io.filesystemobject, but filesystemobject doesn't show
up in the Intellisense, nor does it work. I've included the scrunn.dll in
my project, but still no dice.

I'd rather not do the whole Server.CreateObject("FileSystemObject") method,
because then I lose the intellisense in my development environment... but if
you can point me to a good list of methods and properties, that might be the
way I have to go.

Thanks so much for your help,

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Sergio Otoya | last post: by
2 posts views Thread by Sean S - Perth, WA | last post: by
reply views Thread by Amanda Byrne | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.