Environment specialfolder localapplicationdata windows xp




















The My Computer folder. When passed to the Environment. GetFolderPath method, the MyComputer enumeration member always yields the empty string "" because no path is defined for the My Computer folder.

The My Documents folder. This member is equivalent to Personal. A file system directory that contains the link objects that may exist in the My Network Places virtual folder. The directory that serves as a common repository for documents. This member is equivalent to MyDocuments. The file system directory that contains the link objects that can exist in the Printers virtual folder. To get the x86 program files directory in a non-x86 process, use the ProgramFilesX86 member. The directory that corresponds to the user's Startup program group.

The system starts these programs whenever a user logs on or starts Windows. The user's profile folder. Applications should not create files or folders at this level; they should put their data under the locations referred to by ApplicationData. The following example shows how to use Environment. SpecialFolder with the Environment. GetFolderPath method to get the System directory. The system special folders are folders such as Program Files , Programs , System , or Startup , which contain common information.

Special folders are set by default by the system, or explicitly by the user, when installing a version of Windows. Namely I have: Environment.

ApplicationData Environment. CommonApplicationData Environment. I would also like to know if there are general guidelines on when to use which. Thorsten Lorenz Thorsten Lorenz Add a comment. Active Oldest Votes. MSalters MSalters k 8 8 gold badges silver badges bronze badges. Note that CommonApplicationData has restricted access making it essentially read-only for all but per-user write privileges.

Eg, see stackoverflow. Write Environment. GetFolderPath Environment. MadBoy MadBoy Thanks for your answer, of course I was aware of that simple app, just that I don't have access to all the different Windows versions, but I need to find settings from other applications installed on the users machine.

Thanks for giving me the answer for Win 7, now I'm covered assuming that it will be the same for Vista since I'm still running XP. I noticed that the users. Is there any way to get the company and exe name added to this path or do you have to do it manually?

Can you explain this a bit better what you're looking for? Maybe create new question and elaborate there? Patrick Artner Oran Dennison Oran Dennison 3, 26 26 silver badges 36 36 bronze badges. CommonStartup: Environment. CommonDesktopDirectory: Environment. PrinterShortcuts: Environment. InternetCache: Environment. Cookies: Environment.

History: Environment. Windows: Environment. SystemX Environment. ProgramFilesX Environment. CommonProgramFiles: Environment. CommonProgramFilesX Environment. CommonDocuments: Environment. CommonAdminTools: Environment.

AdminTools: Environment. CommonMusic: Environment. CommonPictures: Environment. CommonVideos: Environment. Resources: Environment. LocalizedResources: Environment. CommonOemLinks: Environment. Droid Output on iOS Simulator MyVideos: SpecialFolder. Templates: SpecialFolder. CommonTemplates: SpecialFolder.

Tom Tom 5, 3 3 gold badges 25 25 silver badges 41 41 bronze badges. SpecialFolder f in Enum. GetValues typeof Environment. GetFolderPath f ; Console. ReadLine ;. Gabe Brown Gabe Brown 1, 3 3 gold badges 15 15 silver badges 22 22 bronze badges. Will these values be valid with Windows 10 S? Output on Windows 7 bit SpecialFolder. I was looking for a listing of macOS but found nothing, maybe this helps someone.

Output on macOS Catalina CDBurning: SpecialFolder. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science.



0コメント

  • 1000 / 1000