Sign in to follow this  
Followers 0
Smithy

CD Autorun

2 posts in this topic

Hi guys, complete novice. I am trying to autorun a cd which contains two three files: File.1 myfile.wmv, file.2 myfile.exe and file. 3 myfile.ico.

Procedure: myfile.wmv is to play first for a specified time, its closed and then myfile.exe is to plays for a specified time and close down.

I have had a trying using ShellExecute ( "myfile.wmv/myfile.exe", "" ,"" , "open" ) which opens the files fine. I have also played around with until WinWaitActive, Do Sleep (sometime) without any success.

I have also tried to use a .vbs script (which worked by itself), however when combined with the autorun.inf I get error E:\ is not a valid Win32 application. I am going to try using autorun.inf to call myfile.bat to call myfile.vbs, which hopefully will run the two files.

Does anyone have any other suggestions?

Share this post


Link to post
Share on other sites



I think, you should create a compiled AutoIt-script as the starter-application:

ShellExecuteWait(@ScriptDir & "\video.wmv")
ShellExecute(@ScriptDir & "\app.exe")

It would be even better if you would include a mediaplayer on you CD being completely independent from the Software installed on the host-pc. You could use VLC for example.


*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0