Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

Using FileSystemObject in VB.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Luis Esteban Valencia - 14 Jul 2005 21:12 GMT
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,
RCS - 14 Jul 2005 21:22 GMT
Look in System.IO

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

HTH

> I'm trying to write a little VB.NET script in an ASP.NET web page that
> will
[quoted text clipped - 22 lines]
>
> Thanks so much for your help,
Juan T. Llibre - 14 Jul 2005 21:36 GMT
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/quickstart/aspplus/samples/classbrowser/vb/classbro
wser.aspx?namespace=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...
======================

> 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
[quoted text clipped - 16 lines]
>
> Thanks so much for your help,

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.