Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Get Current User's My Document's My Pictures Folder

Posted on 2007-12-06
3
430 Views
Last Modified: 2010-04-21
Is it possible to get the current user's My pictures Folder?
C:\Documents and Settings\@CurrentUser@\My Documents\My Pictures

This is for a windows service to copy files from this directory to a network share.  The service is setup to run on LocalSystem, would this also need to be changed?

I am trying to be able to install this windows service without having to hardcode the user's my pictures path.
0
Comment
Question by:JRockFL
3 Comments
 
LVL 19

Expert Comment

by:Delphineous Silverwing
ID: 20424942
Look at Microsoft Knowledge Base article 274443 about using Group Policies for redirecting these folders.
http://support.microsoft.com/kb/274443/en-us
0
 
LVL 3

Accepted Solution

by:
SLFuqua earned 500 total points
ID: 20425022
I don't have VB on this machine, but you can create a variable (e.g., myPath) and assign it "= my." and when you type the dot a whole list of possibilities open up.

I can get the exact code in the morning when I get to work if you need.

Best,
sl
0
 
LVL 8

Author Closing Comment

by:JRockFL
ID: 31413319
Thank you!
My.Computer.FileSystem.SpecialDirectories.MyPictures
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question