• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 643
  • Last Modified:

How do i reference %homeshare% in vb.net

I am writing a VB.net app that is too Sync my documents and desktop to a homedrive.
Currently i am trying to find the VB code that in vb script would %homeshare%.
any ideas?
If you want to see the string im trying to access, open a command line prompt and type 'set'
our company uses the "homeshare" string and i am simply trying to read that string in vb! readonly is just fine.
tyvm
0
scottsilvi
Asked:
scottsilvi
1 Solution
 
vigylantCommented:
Simply this:
Environment.GetEnvironmentVariable("homeshare")

Open in new window

0
 
scottsilviAuthor Commented:
Easy Mode, TYvm
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now