473,395 Members | 1,986 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,395 software developers and data experts.

detecting directory

Hi;

I need to detect the window's user's my documents directory and
the available space on that drive.

I'm trying to do this in vb.net.

Segue.
Nov 21 '05 #1
5 2787
My Documents directory: Environment.GetEnvionmentVariable ("USERPROFILE") &
"\My Documents"

To find the available disk space:
http://weblogs.asp.net/israelio/arch...08/210788.aspx

HTH

"segue" <se***@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
Hi;

I need to detect the window's user's my documents directory and
the available space on that drive.

I'm trying to do this in vb.net.

Segue.
Nov 21 '05 #2
"segue" <se***@discussions.microsoft.com> schrieb:
I need to detect the window's user's my documents directory


\\\
Imports System
..
..
..
Dim s As String = _
Environment.GetFolderPath(Environment.SpecialFolde r.Personal)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #3
Thanks so far however,
I don't like this solution for finding the disk space.
"Herfried K. Wagner [MVP]" wrote:
"segue" <se***@discussions.microsoft.com> schrieb:
I need to detect the window's user's my documents directory


\\\
Imports System
..
..
..
Dim s As String = _
Environment.GetFolderPath(Environment.SpecialFolde r.Personal)
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Thanks so far however,
I don't like this solution for finding the disk space.

"Siva M" wrote:
My Documents directory: Environment.GetEnvionmentVariable ("USERPROFILE") &
"\My Documents"

To find the available disk space:
http://weblogs.asp.net/israelio/arch...08/210788.aspx

HTH

"segue" <se***@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
Hi;

I need to detect the window's user's my documents directory and
the available space on that drive.

I'm trying to do this in vb.net.

Segue.

Nov 21 '05 #5
Segue,
There are three solutions for finding the disk space if you take a look at
that link. You may want to take a closer look at each of them and see if
any of the three will do what you need.
"segue" <se***@discussions.microsoft.com> wrote in message
news:AB**********************************@microsof t.com...
Thanks so far however,
I don't like this solution for finding the disk space.

"Siva M" wrote:
My Documents directory: Environment.GetEnvionmentVariable ("USERPROFILE") & "\My Documents"

To find the available disk space:
http://weblogs.asp.net/israelio/arch...08/210788.aspx

HTH

"segue" <se***@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
Hi;

I need to detect the window's user's my documents directory and
the available space on that drive.

I'm trying to do this in vb.net.

Segue.

Nov 21 '05 #6

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

Similar topics

6
by: bissatch | last post by:
Hi, I am about to write an application that will display all pdf files in a folder and display them by file name in order of date. Is there an easy way of doing this? I was thinking about...
1
by: jeff | last post by:
Hiya I just woundering how would I go about detecting addition, deletion or change to files in a folder? Ideally id like to look at a linux directory and say watch all its contents and then...
4
by: Akhlaq Khan | last post by:
we are developing an intranet application (web based) which needs to detect the logged in user ID of the user hitting the website. the intranet is huge and based on win2k active directory (around...
3
by: Nathan Sokalski | last post by:
I have several pieces of data that I use the HttpApplicationState for, because they rarely change and are used by everyone. When these pieces of data are created, they are created either from...
4
by: Tim N. van der Leeuw | last post by:
Hi, I have a need to store directory and filenames in a database. For the database I chose to use UTF-8 encoding; but the actual encoding used is probably immaterial: whichever coding I take,...
3
by: AdamM | last post by:
How can an app detect whether its running under debug or release mode and update file paths automatically? I have several hardcoded paths like "c:\app\bin\debug" currently and want to make it more...
7
by: BWill | last post by:
Hi, I'm writing a file browser, but I'm not sure how I could go about detecting the drives available on windows and linux systems (preferably using the standard modules if possible). I guess I...
2
by: CraigMuckleston | last post by:
I have a Treeview Control on my Windows Form with a directory structure, ie a list of nodes. This is actually a directory listing from my c drive (similiar to Windows Exlorer). I can iterate...
1
by: Rivka | last post by:
Hello, How can I, from an ASP page, distinguish whether I've arrived to a page from "navigate" (not the asme vitual directory) or whether I'm in the same virtual directory (arrived by...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.