C# directory path levels
It's not a difficult task to perform assuming you have basic knowledge of how to use system.io namespace.Hope the below link answer all your...
View ArticleC# directory path levels
Assuming you have a file located at somefilepath... If (somecondition) File.Copy(somefilepath, @"c:\temp\Customers\SomeFileName");else File.Copy(somefilepath, @"c:\temp\Customers\Customer...
View ArticleC# directory path levels
I know how to create directory paths. I do not know how to place the files in the different directory paths. Could you show me how to place files in the different directory paths?
View ArticleC# directory path levels
1. You should check the existance of the directory before creating it. Do the following: if (!Directory.Exists(@"c:\temp\Customers")) Directory.CreateDirectory(@"c:\temp\Customers"); if...
View ArticleC# directory path levels
I have the following to responses:1. I want to create both folders: a. c:\temp\Customers, and b. C:\temp\customers\Customer Inventory.2. I want to place most of the files obtained from the webservice...
View ArticleC# directory path levels
Adding strings to create path values is not a good idea. Instead, you should use System.IO.Path.Combine(ROOTPATH, "Customer Inventory"). -- Mike
View ArticleC# directory path levels
Is the question how to parse the xml, or how to check and possibly create the files under c:\temp\Customers? -- Mike
View ArticleC# directory path levels
Hey!Just plz try this!class Program { const string ROOTPATH = @"C:\temp\customers\"; static void Main(string[] args) { Directory.CreateDirectory(ROOTPATH + "Customer Inventory");...
View ArticleC# directory path levels
In a C# 2010 desktop application, I need to create dynamic directory paths based upon the names of some documents I obtain from a web service. Basically if the name of the file type in an xml file is...
View Article