AnsweredAssumed Answered

dispatch -> delete file in folderpath

Question asked by Mario Zahren on Feb 27, 2015
Latest reply on Mar 1, 2015 by Iftach Priel

Hello,

 

I´m trying to delete a file in a specific Folderpath with dispatch.

 

e.g.

D:\vault\Folder1\Folder2\Folder3\myFolder\Folder4\...

 

The Foldernames before and after "myFolder" are always different. If the File, I want to delete, is in any Folder under or in "MyFolder" then deleting should be possibel otherwise not.

So I´m trying to extract the string "myFolder" from the Folderpath like that:

 

IF %PathToSelectedFile% != %RootFolderPath%\%\myFolder\% NO_CASE THEN GOTO Exit

 

but it doesn´t work.

 

Thanks for help in advance.

 

Cheers

Mario

Outcomes