Get file path part Action(Power Automate Desktop)

Japanese version.

This action specifies a file path and retrieves the directory or file name.

How to use.

Get file path part Action from File onto the workspace.

Set parameters.


File path

Specify the target file.

If the file may already exist in the specified path, it is also useful to check for its exists and deal with it.

Variables produced

The result column describes the result with the file path "C:\test\test2\Test1.txt".

RootPathGet the root path of the file.C:\
DirectoryGets the directory name of the file.C:\test\test2
FileNameGets the file name.Test1.txt
FileNameNoExtensionGets the name of the file without extension.Test1
FileExtensionGets the file extension..txt



File Actions