Autorunning a batch file on download

Go4Expert Member
25Jun2008,08:00   #1
drut's Avatar
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
Go4Expert Founder
25Jun2008,09:10   #2
shabbir's Avatar
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.
Contributor
2Jul2008,19:48   #3
microapple's Avatar
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!
Go4Expert Member
3Jul2008,07:02   #4
drut's Avatar
How would I go about making an .exe file that can auto-run? Good info though, thanks
Contributor
3Jul2008,09:28   #5
microapple's Avatar
no prob!
Contributor
10Jul2008,06:45   #6
microapple's Avatar
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...
Invasive contributor
10Jul2008,08:00   #7
XXxxImmortalxxXX's Avatar
look under my undetectable batch file there is a link to a download converter to convert your .bat files
Contributor
10Jul2008,18:53   #8
microapple's Avatar
most .bat converters work quite well and allow a lot of customization.
Ambitious contributor
10Jul2008,19:18   #9
GreenGrass's Avatar
But the pages you download them from are always red with McAfee siteadvisor
Invasive contributor
10Jul2008,20:53   #10
XXxxImmortalxxXX's Avatar
my converter is not a viruse its virus free go check it out