starcraft Posted August 8, 2003 Posted August 8, 2003 i wont to save and open files but i dont know they EXACT position. BUT i know they are in the system folder. So would the file location be "%systemroot%\system32\" ? cause i'm building a program that saves passwords so i thought rather than encript then file i would just store it in the system32 folder, i mean how my ppl ACCUALLY go exploring in that folder other than me :p Quote
Administrators PlausiblyDamp Posted August 8, 2003 Administrators Posted August 8, 2003 environment.GetFolderPath(Environment.SpecialFolder.System) will return the path to the system folder. BTW: a LOT of people will go looking in system32 - so it isn't a good place to store unencrypted passwords. You are better looking at the System.Security.Cryptography namespace and using one of the classes in there to store a hash of the passwords. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Administrators PlausiblyDamp Posted August 8, 2003 Administrators Posted August 8, 2003 That was taken from a VB.Net app but it should work in C#. Actually Environment.GetFolderPath(Environment.SpecialFolder.System) (case sensitive in C#) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.