المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Save to default program files folder



C# Programming
05-21-2009, 04:30 PM
Im doing some working with creating and deleting access databases. Problem is I dont know how to write the syntax to save to the default program files folder.

IE

if(file.exists(@"C:\Program Files\blah blah))
file.delete(@"C:\Program Files\blah blah);

I would think Id be able to insert something in place of @"C:\Program Files that tells the system to do to the default program files folder whether it be program files or program file(x86).

Any suggestions.

I searched online but havent found anything, probably due to not really knowing what this would be called to search for it.

Thanks