Run PowerShell Script incoming Job
Posted: Fri Feb 03, 2023 11:42 am
Hi,
I have a PowerShell script that recursively delete specific named subfolders from a root folder, works fine.
I'd like to use it with Switch to automate deletions from input folder.
My little script is this one :
Get-ChildItem -path e:\inputFolder\ -Include 'FoldertoDelete' -Recurse -force | Remove-Item -force -Recurse
I want to use it instead a flow I made, works well when I set Submit Hierarchy with specific subfolders level, but if the hierarchy change in the input folder, then it doesn't work, the level of subfolders can be different from one input folder to others....
That's why I'd like to use my script, works for any level of subfolders.
Must I use generic application or execute command ? And If I use it, it will execute once for a input folder, or for each elements in its ?
Thanks ,
Christian
I have a PowerShell script that recursively delete specific named subfolders from a root folder, works fine.
I'd like to use it with Switch to automate deletions from input folder.
My little script is this one :
Get-ChildItem -path e:\inputFolder\ -Include 'FoldertoDelete' -Recurse -force | Remove-Item -force -Recurse
I want to use it instead a flow I made, works well when I set Submit Hierarchy with specific subfolders level, but if the hierarchy change in the input folder, then it doesn't work, the level of subfolders can be different from one input folder to others....
That's why I'd like to use my script, works for any level of subfolders.
Must I use generic application or execute command ? And If I use it, it will execute once for a input folder, or for each elements in its ?
Thanks ,
Christian