Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Autoplay.inf And .bat File Question, can you check my code and information?
electriic ink
post Oct 12 2005, 02:58 PM
Post #1


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,223
Joined: 11-February 05
From: Heaven
Member No.: 3,709



Okay, so here's the situation. For one of my school projects I have decided to do a simple cartoon animation. Because of the colour loss that you get when saving in .gif format, I have decided to save it as a .wmv file. However our school does not have a media player installed so I have decided to hand the project file (.mswmm) in instead and provide instructions on how to play the movie from there.

Therefore when the cd is inserted I need two files to open (movie.mswmm AND instructions.txt). I have googled about autoplay and I have found out that you can only get one program to open through the autoplay.inf file. So instead I have complied a .bat file which is as follows:

CODE
start movie.mswmm
start instructions.txt
exit


It opens the files and then closes the command prompt window, opening the movie file first and the instructions after so they are on top of the movie window.

My autoplay file is as follows:

CODE
[autoplay]
File = core_files/Begin.bat
Icon = core_files/cd_icon.ico


Instead of the usual ordinary cd icon which is displayed, it shows my chosen icon and the code starts the bat file when the cd is insterted.

So, can I have confirmation on my coding before I risk mucking up my computer and cd?
Go to the top of the page
 
+Quote Post
BuffaloHELP
post Oct 12 2005, 03:45 PM
Post #2


Desperately seeking "any key" to continue...
Group Icon

Group: Admin
Posts: 3,487
Joined: 23-April 05
From: Trap17 storage box
Member No.: 6,042



That is affirmative.

Although, I wouldn't point to the sub directory. Instead, place your Begin.bat and icon on the root directory and change the autoplay accordingly.

Here's a simple solution to test out your autoplay without losing a CD. Try using CD-RW smile.gif And don't forget that in order to utilize autoplay, your school's computer has to be autoplay enabled.
Go to the top of the page
 
+Quote Post
electriic ink
post Oct 12 2005, 06:43 PM
Post #3


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,223
Joined: 11-February 05
From: Heaven
Member No.: 3,709



QUOTE(BuffaloHELP)
Although, I wouldn't point to the sub directory. Instead, place your Begin.bat and icon on the root directory and change the autoplay accordingly.


Will do.

QUOTE(BuffaloHELP)
And don't forget that in order to utilize autoplay, your school's computer has to be autoplay enabled.


I think it will. Guess I'll just have to find out...

Thanks for your help smile.gif

This post has been edited by cmatcmextra: Oct 12 2005, 06:46 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How To Make A Search Form And Php Code?(10)
  2. Open Any Unknown File Type With Notepad(1)
  3. An Uncrackable Code!(2)
  4. Copy A File And Rename It With Increment If Exist(5)


 



- Lo-Fi Version Time is now: 11th October 2008 - 12:11 AM