How to Pass Drive name or folder name in input dialog activity and check the size of it?

uiautomation
studio

#1

How to Pass Drive name or folder name in input dialog activity and check the size of it?


#2

#3

Please let me know if is not C drive and we need to make it Generic and pass the input value manually


#4

try to pass Drive Name by using a variable


#5

Hi @kavyachenna,

Create a variable which will contain the value of drive and pass it as below.

drive_info = new DriveInfo(strDriveName)

Regards,
Rahamat


#6

Hi there @kavyachenna,
The below example may provide what you need:
Generic-Check File Size.xaml (7.9 KB)

Please let me know if you have any further queries.

Thanks,
Josh


#7

Thank you… Its working


#8

Hi there @kavyachenna,
That’s fantastic!

If you have found an appropriate solution, can you please mark the relevant post :slight_smile:

Thanks,
Josh