FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Autorun trouble





Flakky
Hi,

I can't seem to get my autorun to work.
Windows XP loads the icon and the label but ignores the rest.
It says it has mixed content and if I would like to copy, view, print, import or play videos/pictures, open the folder or take no action, not launch the autorun as I wanted.
Here is the code I used:
Code:
[autorun]
action=Autorun
open=bin\autorun.exe
icon=autorun.exe,0
label=SNP Harddrive
shell\option1=More info
shell\option1\command=bin\autorun.exe about
;action=Open Program

[Content]
MusicFiles=0
PictureFiles=0
VideoFiles=0

Please note that this is used on my external hard drive.
Anyone can fix this so it works?
It should run autorun, ignore all other content, display the icon and label (works right now) and have a shell option for more info.
Marcuzzo
Flakky wrote:

Code:
[autorun]
action=Autorun
open=bin\autorun.exe
icon=autorun.exe,0
label=SNP Harddrive
shell\option1=More info
shell\option1\command=bin\autorun.exe about
;action=Open Program

[Content]
MusicFiles=0
PictureFiles=0
VideoFiles=0



Hi Flakky,
I think you should add: "shell=option1" to it, check here:
http://en.wikipedia.org/wiki/Autorun.inf wrote:
shell\verb\command=(exepath\)exefile (param1 (param2 ...))
Adds a custom command to the drive's shortcut menu. verb is a string with no embedded spaces. verb is also the text that will appear in the shortcut menu unless specifically altered to some other text. See below for an example.
shell\verb=menu text
Optionally specify the text displayed in the shortcut menu for the verb above. Use an ampersand (&) to select a hotkey for the menu. See below for an example.
shell=verb
Defines the menu command referred to by shell\verb as the default command in the shortcut menu. The default command is the command executed when the drive icon is double-clicked. If missing, the default menu item will be "AutoPlay", which launches the application specified by the open entry.
Example:
Code:
shell\readme\command=notepad readme.txt
shell\readme=Read &Me
shell=readme


also the content section is for Vista or later only so it won't work in XP.


hope this helps
Flakky
@Marcuzzo:
Thanks. I'll add that part and hopefully it work function!
Related topics
Programming Help & Support Guidelines
Destiny - " Trouble with the rat race..."
PHP script trouble
The story of Shut Up, Manner, and Trouble
having trouble scoring on frihost?
Trouble limite de la personalité
autorun and .htm
Problem with autorun DVD..!
Trouble logging in: user sonlight
Email Trouble - Automatic spam filters?
The New World (A.K.A. North and South America)
usb autorun?
autorun: nothing to choose?
a very good free software for killing autorun virus.
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.