Get " My Music" directory

  • Thread starter Thread starter igul222
  • Start date Start date
I

igul222

I have a text input, and I would like the default text in it to be the
path to the current user's My Music directory. How can this be achieved?
 
igul222 said:
I have a text input, and I would like the default text in it to be the
path to the current user's My Music directory. How can this be achieved?

Text1.Text = Microsoft.VisualBasic.FileIO.SpecialDirectories.MyMusic
 
igul222 said:
I have a text input, and I would like the default text in it to be the
path to the current user's My Music directory. How can this be achieved?

'Environment.GetFolderPath(Environment.SpecialFolder.MyMusic)'.
 
Herfried K. Wagner said:
'Environment.GetFolderPath(Environment.SpecialFolder.MyMusic)'.

There sure are a lot of ways to skin the cat with .Net!
 

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

Back
Top