Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Help with autorun please


  • Please log in to reply

#1
medusa9

medusa9

    Member

  • Member
  • PipPip
  • 68 posts
I'm trying to create a cd that will automatically open a setup file *and* a .txt file when the disk is inserted.

I've tried:
[autorun]
shellexecute=MediaMonkeySetup.exe
open=readme.txt

but it didn't work. All the info on the web doesn't address how to open more than one file at a time, nor files of different types. Please help?
  • 0

Advertisements


#2
devper94

devper94

    Member

  • Member
  • PipPipPip
  • 817 posts
You can add multiple actions for your CD:
[autorun]
open=MediaMonkeySetup.exe
shell\readme\command=notepad readme.txt
shell\readme=Readme
shell\something\command=do_something.exe
shell\something=Do something
shell=readme

If you want to open several files at a time, then you should create a batch file and put an "open" line in the autorun.inf file that points to that .bat file.
Like:
(autorun.inf)
[autorun]
open=cmd.exe /c autorun.bat
(autorun.bat)
@echo off
start somefile.exe
start readme.txt

You must use START or the files won't open at the same time.
You can even open .doc, .xls... files with the START command.

See here for more: http://en.wikipedia....iki/Autorun.inf
  • 0

#3
medusa9

medusa9

    Member

  • Topic Starter
  • Member
  • PipPip
  • 68 posts
Thank you so much for the help. :D
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP