473,503 Members | 13,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get the directoryinfo object from knowing a pathname

1 New Member
I have located the My Documents folder using the Environment.GetfolderPath(Environment.SpecialFolde r.Personal) call, yet this returns a string.

This returns a string which looks perfect yet I would like to pass the DirectoryInfo object of this path to a function.

Any ideas?

Thanks mike
May 19 '10 #1
1 1144
vb5prgrmr
305 Recognized Expert Contributor
perhaps by asking this question in the correct forum might be a good idea as you need VB.NET!
May 19 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1324
by: Ben Reese | last post by:
Using the FileSystemObject I can, at runtime find out which drive letter is asigned to the CD Rom Driv Dim Fso As New Scripting.FileSystemObjec For Each Drive As Scripting.Drive In Fso.Drive If...
0
1494
by: Jessard | last post by:
Hi all, I'm using a System.IO.DirectoryInfo object as follows: Public Function FolderExists(ByVal FolderPath As String) As Boolean Dim f As New IO.DirectoryInfo(FolderPath) Return f.Exists...
1
5032
by: Paul K. | last post by:
For the past couple weeks, I've been learning C# (already know basic C++) and .NET. In the middle of re-coding a small application I made previously in VB, I am running into a problem. Here is...
2
5913
by: Lukasz Lacki | last post by:
how can i create object declaring it's class during run-time? fe. i ask user for classname. after he enters, i'll need to do something like this: IMyInterface obj =...
1
2602
by: Vagabond Software | last post by:
I am recursing through ALL folders and sub-folders below a certain level to list all the files of a certain type in those folders. I use two ArrayLists, alFiles and alFolders, to track matching...
2
3905
by: Tracey | last post by:
Can someone tell me how to load a xml file into a xmldocument object by pathname of the xml file? Thanks in advance!
4
1578
by: Rachel | last post by:
I have tried: System.IO.File.Create("C:\FolderName") It does not create a folder. Any ideas without using the File System Object? Rachel
4
6717
by: Zeb | last post by:
Hi I'm using DirectoryInfo.Delete so that when a product is removed, all it's associated images (including the folder they sit in) are deleted. This actually seems to work fine. However, the...
3
3078
by: Steve Kershaw | last post by:
Hi, I need a way to bind a DirectoryInfo array to a GridView without any errors. The code I'm using to create the DirectoryInfo array is: // Define the current directory DirectoryInfo dir...
5
6134
by: Tom P. | last post by:
I am having the following problem: I create a FileSystemWatcher and wait for events. When the event does happen I refresh a FileSystemInfo list and set properties accordingly (IsFile, IsDir,...
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7098
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7296
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7017
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.