File xxx cannot be opened for writing

Try a user-defined tool, like this:
Path: C:\Windows\System32\cmd.exe
Parameter: /c echo "%_path%" | clip