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

مشاهدة النسخة كاملة : Relative file path referencing problem



C# Programming
05-20-2009, 06:22 PM
I need to change the default ******** that my application uses to reference files relatively. I use the syntax as follows: "..\\DBconnection.sec". This returns: C:\Projects\dotnet\RMS_IMCS\RMS_IMCS_WIN\bin\DBconnection.sec. I need the "bin" folder to be changed to RMS_IMCS.
my relative reference needs to look like this: "..\\RMS_IMCS\\RMS_IMCS_WIN\bin\DBconnection.sec".
This would allow me to chnage files located in folders outside my project without having to use absolute referencing. Any help?