You could write a batch file that launches the appropriate application based on the folder, like so:
IF /I "%~dp1"=="C:\anime\" programA.exe %*
IF /I "%~dp1"=="C:\movie\" programB.exe %*
Then right-click on one of your files and choose Open With - Choose Default Program, then browse to the .bat file you just created. Make sure the checkbox "Always use the selected program to open this kind of file" is checked.
From now on, you can simply double-click the file and the correct program will be launched.