Login   /   Register

Rename or move a directory

March 31st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

The following code example shows how to use the I/O classes to create a listing of all files with the extension “.exe” in a directory.
The output data is inserted to the local data sheet and also printeg to the QTP log.

Create a directory listing

March 31st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

The following code example shows how to use the I/O classes to create a listing of all files with the extension “.exe” in a directory.
The output data is inserted to the local data sheet and also printeg to the QTP log.

Copy/Move all contest of directory

March 31st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

System.IO.DirectoryInfo class exposes instance methods for creating, moving, and enumerating through directories and subdirectories.
System.IO.File Provides static methods for the creation, copying, deletion, moving, and opening of files.

Determine if a folder exists

March 31st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

System.IO.DirectoryInfo class exposes instance methods for creating, moving, and enumerating through directories and subdirectories.