I started looking into scripting today and played around with it a little. I believe there's still a lot to learn
The (1st world-)problem I'd like to solve is actually pretty simple:
1. Select a bunch of files, or just one
2. Push a button
3. Move the files (skip directories!) into
$destroot, which is something like
c:\dest\<date yyyy>\<date mm>
4. Rename the files at the same time, prefixing "
<date yyyymmdd>_"
With my very basic skills I managed to step 3 for one file:
Code: Select all
$src="\\somewhere\inbox\1.txt";
$destroot = "\\somewhere\<date yyyy>\<date mm>";
copyto "$destroot", "$src",,3;
goto $destroot;
$src, but that didn't really work. It replicated the whole source path in the destination. As well, renaming the file didn't work.
I am pretty sure this is possible. Any hint appreciated!
Cheers
Rico