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 / Languages / C# / July 2007

Tip: Looking for answers? Try searching our database.

Equivalent of FIleSystemObject in C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bob Miller - 17 Jul 2007 03:27 GMT
I am try to convert the following routine into C#

dim oFSO
set oFSO = CreateObject("Scripting.FilesystemObject")

dim sHomePath
sHomePath = '\\server\c$\home\'

dim oFolder
Set oFolder = oFSO.CreateFolder(sHomePath & 'BOB')

What should I use instead of the filesystem object?

Cheers

Bob
Mr. Arnold - 17 Jul 2007 05:11 GMT
>I am try to convert the following routine into C#
>
[quoted text clipped - 8 lines]
>
> What should I use instead of the filesystem object?

I don't know if you're looking for this or what.

http://preview.tinyurl.com/2akps5
Bob Miller - 17 Jul 2007 06:30 GMT
>>I am try to convert the following routine into C#
>>
[quoted text clipped - 12 lines]
>
> http://preview.tinyurl.com/2akps5

I'm actually trying to do the same thing as "Active Directory Users &
Computers" does when you use the "%username%" variable in the home drive
definition of a user account.

But this article might be helpful in starting me down the right path

Cheers

Bob
Bram - 17 Jul 2007 13:07 GMT
Hi Bob,

The functionality you're looking for is in the System.IO namespace. To
create a directory, you can use Directory.Create(string path).

Regards,
Bram

> >>I am try to convert the following routine into C#
>
[quoted text clipped - 22 lines]
>
> Bob
Bob Miller - 17 Jul 2007 23:08 GMT
Thanks Bram

> Hi Bob,
>
[quoted text clipped - 30 lines]
>>
>> Bob
Bob Miller - 18 Jul 2007 06:13 GMT
Now that I can add in some more permissions, I need to modify some of the
inherited permissions, but only for this directory
How do a copy the inherited permissions, and then stop inheritance (this
should let me modify the permissions)

Thanks Heaps

Bob

> Thanks Bram
>
[quoted text clipped - 32 lines]
>>>
>>> Bob

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.