Login   /   Register

Working with DOS command line

April 16th, 2008 by daniva
     9 votes, average: 4.44 out of 59 votes, average: 4.44 out of 59 votes, average: 4.44 out of 59 votes, average: 4.44 out of 59 votes, average: 4.44 out of 5
Loading ... Loading ...

The objectives of this article are :

Learn how to use DOS command lines in QTP.
Alternative complex tasks.
Alternative .NET methods.

Lists only files and folder in a specific directory and sub-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 example list all folders under QTP installation folder. optionally you can load the output to an array, id you need to iterate the list.

Lists only directories in a specific 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 example list all folders under C:\Automation. optionally you can load the output to an array, id you need to iterate the list.

Lists all files and directories in a specific 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 ...

Dir displays a list of files and subdirectories in a directory.

Delete all temporary files

March 31st, 2008 by daniva
     1 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 5
Loading ... Loading ...

Del is a command used to delete files from the computer.

Delete all "Read Only" in a specific folder

March 31st, 2008 by daniva
     1 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 5
Loading ... Loading ...

Del is a command used to delete files from the computer.

Delete all files in a folder matching a pattern

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 ...

Del is a command used to delete files from the computer.

Delete all files in a folder

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 ...

Del is a command used to delete files from the computer.

Delete one file on any directory

March 31st, 2008 by daniva
     1 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 51 votes, average: 3 out of 5
Loading ... Loading ...

Del is a command used to delete files from the computer.