Current Path of Directory



There are some files in a folder. I want that file name one by one. But the issue is, I am not getting the current path as the path is dynamic.
Thanks in advance.



In assign activity urvariable 1= Directory.GetFiles(“ur file path folder”)
than use foreach activity and store ur urvariable1
than use assign actvity urvariable2 = Path.GetFileName(foreachname)


@hemal, Along with @indra’s solution, You can use Environment.CurrentDirectory to get the path in which you are working !

Dominic :slight_smile:


Hi @599712
it’s showing me the different path. My path is in a drive and it is showing me a desktop path.


Hi @indra,

That’s true. AS it will work. But the thing is the path is dynamic. Like, I already have an assighed variable, for e.p. Zippath.
where the path is -
But I need to access -

Hope you get my point. there can be a folder in the particular path. In which I need to access each file.



Hi ,

I have done it.
with Directory.GetDirectories(Directory.GetDirectories(zipPath)(0).ToString)(0).ToString

Thanks for your help.