BlackWaspTM

This web site uses cookies. By using the site you accept the cookie policy.This message is for compliance with the UK ICO law.

<< Previous | 1 | 2 | 3 | 4 | 5 | Next >>
Getting and Setting a Program&#39;s Working FolderGetting and Setting a Program's Working Folder
When a program is executed a working folder is assigned. This may be the same folder as the program's executable or can be set to a different folder using the properties of a shortcut. The correct working folder can be found using the Environment class.
Checking that a Folder ExistsChecking that a Folder Exists
A common verification test to be carried out is checking that a specified folder, or directory, exists. This test process can be easily undertaken using the static methods of the Directory class, which is provided within the .NET framework.
Checking that a File ExistsChecking that a File Exists
A common verification test to be carried out is checking that a specified file exists. This test process can be easily undertaken using the static methods of the File class, which is provided within the .NET framework.
Building a File Path with Path.CombineBuilding a File Path with Path.Combine
When using a variety of input methods to accept a file path and file name, the format of the results can vary. To avoid the problems of checking for path separator characters and adding or removing them as required, .NET provides a method to provide this.
<< Previous | 1 | 2 | 3 | 4 | 5 | Next >>