Yeah, I think I read everything in StackOverflow and all their sister sites as well. Plus several including MS Tech Net and all of them are vague to nonexistent about doing what this script does in a way to keep it all on full auto.
If it requires any interaction then it can't be used as a drag and drop receptacle as I do it now. Currently, if there is more than one file with same name it follows the normal windows doctrine of using (2) etc for duplicate files but does not stop to ask me anything. Both copies get attached if they come from different paths.
Generally speaking, there would normally not be duplicates though.
Surprise! Thanks for a wake up Miles! I had given up on Stack but this was one I had not read yet and does have some interesting options using Java.
The thing is, if you check the script it does not actually copy or move anything at all. It attaches the files directly tot he email based on the path to the file to be attached. There is no point in time that I could perform the compression on all the files without adding a complete section to do that.
I was hoping I could intercept the calls for the files to be attached and run each of them through a compression before the get attached. I actually would prefer each to be a separate file if possible so a procedure such as this would do that.
As an aside. While this is more of a 'stunt' than anything else, I did figure out that I could get by if I simply add the extension of .txt to each file-name. Then program.exe would become program.exe.txt before being attached and this works perfectly. Outlook sends them with no complaints then.