I´m trying to delete a file in a specific Folderpath with dispatch.
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.