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

مشاهدة النسخة كاملة : creating a directory in the solution during runtime



C# Programming
05-11-2009, 03:51 PM
hi,
I'm using this code to create a new directory into the solution during runtime

string targetPath = @"SampleDirectory"; \\directory name without any path to be copied in the solution
Directory.CreateDirectory(targetPath);

this code is working very well & creates the directory into the solution, but the problem arouses whenever I'm using an open file dialogue before this code, in this case the directory is created into the path specified by the open file dialogue not the solution path.

what can I do?