cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get Directory Listing of Physical Drive

0 Kudos
299

Hi there....

      I want to get a directory listing of the physical hard drive i.e. C: drive.

      one can get the file lists by using the GetFileList Action block you can create files and create directories

      and you can delete directories and files.

       but I also now need to get a directory listing in order for me to loop through each directory to get the files listed in the directories

       in order for me to delete the files and then delete the directories.

    but the File list action block only seems to be able to give me the files and not directories.

  Any ideas ?

Thansk in Advance

View Entire Topic
Former Member
0 Kudos

Hi Morne,

By using "Get File List" action block, we can't get list of directories under C: drive.

We can only get details of a particular folder using mask as "*.*"

Example: Folder : C:\Test Mask : *.*

We can create custom action block to get the all the directories under C:\ drive. This might be one option.

Hope it helps.

Thanks

S.Rajesh