So, I wrote a script to encrypt whole directories but came across a result that I can't understand.
it does a simple FOR /R %%v in (*.*) DO bcrypt %%~fv < pwd-file
For some reason that works from commandline level. great! BUT what I had been trying is to call this script from another one is the following manner:
I added a script to the Windows SendTo folder so I can click on a bunch of files and run the crypt for all of them at once.
Code: Select all
SET LOCFOLDER=%~dp1
CD %LOCFOLDER%
that bit of code guarantees I work only with the files inside the folder I right-clicked
THEN I go on calling the bat that actually encrypts by opening a new command window inside the aim folder:
Code: Select all
@cmd
Once the new cmd pops up, I type "encrypt" and the program runs exactly the same way it does during the execution in which it works, but prints "No valid files found" and does not complete encryption...
What does this "No valid files found" mean??
cheers!