[Making an autorun program.] -



Making an autorun program.

Discuss Making an autorun program.



Posted by: Axe_mann

Hey i am new to prgramming and i make small annoying bat files. i was wondering though how do you make an autorun program?:confused:



Posted by: brady

autoexec.exe



[url]http://www.computerhope.com/ac.htm[/url]



Posted by: office politics

[QUOTE][i]Originally posted by bradybnmci [/i]
[B]autoexec.exe

[url]http://www.computerhope.com/ac.htm[/url] [/B][/QUOTE]

u mean autoexec.bat? since its referenced in the link.

i dont think 2k or xp executes these files on windows startup by default.

[url]http://www.annoyances.org/exec/forum/winxp/t1031935583[/url]
[quote]Not sure but try this one. Run regedit go to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" at the right pane add a string value "ParseAutoexec" (no quotes) and give value 1 to the string. Hope this help... [/quote]


it seems autoexec.nt may execute before a dos window opens though.

[url]http://support.microsoft.com/kb/314106/[/url]
[quote]Check the Config.nt and Autoexec.nt files in the SystemRoot%\System32 folder for non-standard settings. [/quote]


on the flipside, autorun is a function of any cd/dvd drive that executes when you insert the cd and the cd contains properly formatted file named autorun.inf

[url=http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/autorun/autoplay_cmds.asp?frame=true]Autorun.inf Entries[/url]


if you want the batch files to execute on windows startup, id place them in either A- windows start menu startup folder, which loads after windows logon or B- windows registry Run key [url=http://msdn.microsoft.com/library/en-us/setupapi/setup/run_and_runonce_registry_keys.asp?frame=true]Run and RunOnce Registry Keys[/url]



Posted by: Axe_mann

the tiltle sums it up. i just need it to run a bat file when i send it to another computer!!!



Posted by: darkninja

Go to Start>Run and type in gpedit.msc

Under Local Computer Policy > Computer Configuration > Windows Settings >Scripts
There you can set start up and shut down scripts. Dont know if that helps?