473,320 Members | 1,990 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Accessing Special Windows Folders

Does anyone know of a simple way to retrieve WITH CODE
the path to special folders such as the 'My Documents'
or 'Application Data' folders. I can do it with api
calls using sffolder, etc but I would like to avoid those
in the future and thought that would be possible in
vb.net 2003.

I can use the Folder Browser dialog tool in Vb.net 2003
but then it seems that it must be displayed to the
User!. I want to retrieve and use the special folders
directly and only from code. Is there a way to use the
folder browser to get the root folder path without
displaying the dialog?
Nov 20 '05 #1
1 2397
Hi,

Environment.GetFolderPath(Environment.SpecialFolde r.Personal)

Environment.GetFolderPath(Environment.SpecialFolde r.ApplicationData)

Ken
--------------
"Jim Haynes" <an*******@discussions.microsoft.com> wrote in message
news:0d****************************@phx.gbl...
Does anyone know of a simple way to retrieve WITH CODE
the path to special folders such as the 'My Documents'
or 'Application Data' folders. I can do it with api
calls using sffolder, etc but I would like to avoid those
in the future and thought that would be possible in
vb.net 2003.

I can use the Folder Browser dialog tool in Vb.net 2003
but then it seems that it must be displayed to the
User!. I want to retrieve and use the special folders
directly and only from code. Is there a way to use the
folder browser to get the root folder path without
displaying the dialog?

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Colin Steadman | last post by:
I'm just starting out writing Python scripts (in PSP), and need to find the location of Windows special folders such as 'My Documents' and 'Desktop' so that I can save files in the right place. Is...
1
by: Howard | last post by:
Hello all. On a file or folder object in Windows 2000/2003, it is possible to edit the standard Change, RW etc permissions and give "special" permissions. These special permissions do things...
4
by: Paul Lyons | last post by:
Hi, I'm developing on WinXP and deploying on W2K so the path to System32 directory is different on each system. I'm trying to import DLLs from the Win32 API, but I have to change the path and...
5
by: Niloday | last post by:
Hi All, I am trying to access a mapped network drive from a service that I have created. The service needs to create/delete folders/files on a network drive. When I tried to connect to a...
5
by: Khalique | last post by:
Hi everyone, I Hope that someone will be able to give me a hint to the solution to my problem. I have developed a web service (vb.net) that needs to access the folders / files and copy files to...
0
by: Bob | last post by:
Hi, I'm new to Python and I want to create a script that will import contactitems into an Outlook Public Folder. Therefore I've installed the Python for Windows Extensions. This way I can...
12
by: wheels619 | last post by:
How can I get access for another user's special folder locations? A configuration file is stored in the users' appData folder and the program altering it will be ran under the admin.
3
by: questionit | last post by:
Hi While accessing shared folder on the local network, it was possible to access the folder by just entering the workstation IP in windows explorer - and the shared folders will show up. From...
0
by: Ronnie1987 | last post by:
Hi, I am currently using FolderBrowserDialog class to access folders across the network. My problem is that when i click a folder, the Windows Authentication dialog does not appear and sub-folders...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.