How to send a batch file by email
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Mysterious Puzzle
--
Chapters
00:00 How To Send A Batch File By Email
00:48 Accepted Answer Score 12
01:18 Answer 2 Score 10
01:44 Answer 3 Score 5
02:02 Answer 4 Score 4
02:12 Answer 5 Score 1
02:39 Thank you
--
Full question
https://superuser.com/questions/480729/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#security #email #batch #gmail
#avk47
ACCEPTED ANSWER
Score 12
Its a 'security' thing, and in this case, changing the extension is the easiest way to fix it. I did a few tests before and gmail at the very least checks 7zip, and zip files.
You need everyone in the company to run it - use a fileshare and share the link to it internally. You might also be able to upload it somewhere and get the link to the others. In this case getting creative is the best idea.
ANSWER 2
Score 10
I have done it by simply double-zipping it, because Gmail does not unzip and checks recursively.
Archive it in .rar format, then .zip, or .tar.gz, or any other combination of two different archiving formats.
However, it may be a bit of work for some of your recipients to un-archive twice, so the other answers may prove more useful.
ANSWER 3
Score 5
I don't know of any way you can do it without changing the file extension. The way I usually send .exe
or any type of executables through email is by first zipping it, then changin the extension of the zip file (to something made up).
ANSWER 4
Score 4
Put it in a password-protected zip file and include the password in the body of the email.
ANSWER 5
Score 1
The best way to to this is to zip it first (or any compression program). Lost of email providers do not allow sending files which can be run (.exe or .bat for example). Zipping it typically get's round it.
If it still fails, rename the file with .exeXXX (include the xxx) and provide instructions to the recipient that they will have to rename the file before executing on remote machine.
In your case, rename it to .batXXX