Detecting 'My Documents" usind vb.NET

G

Garry

Coming from VB6, I can detect the My Documents and Application Data
directories using APIs.

Does VB.NET have its own methods to return these values and if so, what are
they.

The vs.net help function is useless.

Garry
 
R

RobinS

If you have VB2005, try Environment.SpecialFolder.ApplicationData
and Environment.SpecialFolder.MyDocuments.

Robin S.
 
H

Herfried K. Wagner [MVP]

Garry said:
Coming from VB6, I can detect the My Documents and Application Data
directories using APIs.

Does VB.NET have its own methods to return these values and if so, what are
they.

'System.Environment.GetFolderPath'.
 
G

Garry

Thanks Robin - it werks!!!

Garry


RobinS said:
If you have VB2005, try Environment.SpecialFolder.ApplicationData
and Environment.SpecialFolder.MyDocuments.

Robin S.
 
A

aaron.kempf

oh how ****ing cute

did vb change? I for one am sick and tired of working with a BETA
LANGUAGE that is going to be discontinued.

you guys did get the memo about VB.net getting DISCONTINUED.. right?

-Aaron
 
B

Bruce W. Darby

Darn,

Now why didn't I get that memo???? Could you forward that to me Aaron, as
I'm sure you're so all-fired important to MS that they keep you fully
apprised of every move they're making.

Bruce
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top