Autorunning a batch file on download

drut's Avatar, Join Date: Jun 2008
Go4Expert Member
I was wondering if there is a command that makes a, say a shutdown batch file to autorun when downloaded. Or is there a way to make it autorun on login.
Thanks
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
If he is downloading he will always have couple of options

1. Save
2. Run

If he chooses save there is no way you can run it unless user click on it.
microapple's Avatar, Join Date: Jul 2008
Contributor
You know transfrering/distributing .bat files over the internet is illegal. So I would find a converter and convert your .bat file to a .exe file. .exe files are much easier to set as a auto-run plus they're totally legal as far as I'm concerened...
An auto-run at login is different.
You have to reun the .bat file with a code that is like,
move/copy C:\Your file.bat C:\Documents and Settings\my user (or all users)\Start Menu\Programs\Startup
Once you run this it will put your .bat in the starup folder and It *should* run on startup!
Hope this helps!
drut's Avatar, Join Date: Jun 2008
Go4Expert Member
How would I go about making an .exe file that can auto-run? Good info though, thanks
microapple's Avatar, Join Date: Jul 2008
Contributor
no prob!
microapple's Avatar, Join Date: Jul 2008
Contributor
Quote:
Originally Posted by drut
How would I go about making an .exe file that can auto-run?
You can't... ... BUT You can hope or even btr make tutorial on how to install and say something like:

When it asks you to save/run it is very important that you click run or program x will not function correctly.

Say something like that. It depends on what level of experience you are targeting. I don't know your circumstances, but trying to make the user run the file might defeat the whole purpose...
XXxxImmortalxxXX's Avatar
Invasive contributor
look under my undetectable batch file there is a link to a download converter to convert your .bat files
microapple's Avatar, Join Date: Jul 2008
Contributor
most .bat converters work quite well and allow a lot of customization.
GreenGrass's Avatar, Join Date: Jul 2008
Ambitious contributor
But the pages you download them from are always red with McAfee siteadvisor
XXxxImmortalxxXX's Avatar
Invasive contributor
my converter is not a viruse its virus free go check it out