Hello Paulej
I am very interested though what that sample script file encryption AES Crypt in large quantities from several folders on your computer.
Thank you for your software!
Help with a script for AES Crypt
- paulej
- Posts: 593
- Joined: Sun Aug 23, 2009 7:32 pm
- Location: Research Triangle Park, NC, USA
- Contact:
Re: Help with a script for AES Crypt
If using Linux, you could easily write a script to encrypt all files in select directories. It might also be possible in DOS, but I'm not a batch script guru and never used PowerShell.
AES Crypt can encrypt any number of selected files from the GUI at once. However, it doesn't operate on directories. For that, I generally use ZIP or tar files, myself.
AES Crypt can encrypt any number of selected files from the GUI at once. However, it doesn't operate on directories. For that, I generally use ZIP or tar files, myself.
Re: Help with a script for AES Crypt
Okay, but if you get a list of addresses that you want to encrypt the file, and pass it to the program, it will encrypt the files on the list?
example:
DIR /B /S C:\*.txt;C:\*.jpg /A-D > log.txt | aescrypt -e -p apple
Wakes it work?
example:
DIR /B /S C:\*.txt;C:\*.jpg /A-D > log.txt | aescrypt -e -p apple
Wakes it work?
- paulej
- Posts: 593
- Joined: Sun Aug 23, 2009 7:32 pm
- Location: Research Triangle Park, NC, USA
- Contact:
Re: Help with a script for AES Crypt
No, that won't work. However, if you had a way to put those on the right side of the command, it would.Jon wrote:Okay, but if you get a list of addresses that you want to encrypt the file, and pass it to the program, it will encrypt the files on the list?
example:
DIR /B /S C:\*.txt;C:\*.jpg /A-D > log.txt | aescrypt -e -p apple
Wakes it work?
To do something like that using Linux, I could write this:
Code: Select all
for x in `ls /some/dir /another/dir`
do
aescrypt -p apples -e $x
done
The error in your original example is that one or more filenames must be specified at the end. If stdin is used, rather than a filename, then - takes the place of a filename, but there is only one file piped to aescrypt that way.
Re: Help with a script for AES Crypt
Excuse me for my importunity, but I'm probably not so explained. The bottom line is that I want to implement encryption of files on a mask on the local disk. To do this, I get a list of all files matching mask, write down their addresses in the file log.txt and try to make the program encrypt each file in the list. Is it real ?
- paulej
- Posts: 593
- Joined: Sun Aug 23, 2009 7:32 pm
- Location: Research Triangle Park, NC, USA
- Contact:
Re: Help with a script for AES Crypt
I'm sure it can be done with either batch files or Power Shell. Unfortunately, I doubt know how to do it.