Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Autorun File  (Read 2670 times)

0 Members and 1 Guest are viewing this topic.

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Autorun File
« on: April 05, 2010, 12:31:33 PM »
I have two problems, the second one not quite as important.

1. How can I open a folder with the autorun.inf file. For example, here is my script:
Code: [Select]
[autorun]
label=The Flash Drive
shell\comma1=+--> Firefox
shell\comma1\command=FirefoxPortable\FirefoxPortable.exe
shell\comma2= |   \--> Computerhope
shell\comma2\command=FirefoxPortable\FirefoxPortable.exe www.computerhope.com/forum
shell\comma3= |   \--> Onemorelevel
shell\comma3\command=FirefoxPortable\FirefoxPortable.exe www.onemorelevel.com
shell\comma4=+--> Programs
shell\comma4\command=
shell\comma4\command is what I want to open up the folder called PROGRAMS, which is in the root of the drive. I tried "PROGRAMS" and "\PROGRAMS\", but I get a "Access is denied" error.

2. How can I disable the display of the Autoplay menu (there is a difference between Autoplay and Autorun) from within the autorun file? I heard that the command "useautorun=0" accomplishes this...but it doesn't work...
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Autorun File
« Reply #1 on: April 05, 2010, 12:48:41 PM »
here's a good reference from MS on the various features usable in autorun.inf:

http://msdn.microsoft.com/en-us/library/cc144200%28VS.85%29.aspx

it looks like there is no option to disable the autoplay functionality (that is, the little dialog that asks what you want to do instead of just running it as normal) the "autoplay" value can only be used for "force" use of autoplay. you could try =0 I suppose, but according to that doc it's not supported.


regarding your problem opening the folder, use explorer \PROGRAMS for shell\comma3\command.
I was trying to dereference Null Pointers before it was cool.

Helpmeh

    Topic Starter


    Guru

  • Roar.
  • Thanked: 123
    • Yes
    • Yes
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 8
Re: Autorun File
« Reply #2 on: April 05, 2010, 12:49:35 PM »
here's a good reference from MS on the various features usable in autorun.inf:

http://msdn.microsoft.com/en-us/library/cc144200%28VS.85%29.aspx

it looks like there is no option to disable the autoplay functionality (that is, the little dialog that asks what you want to do instead of just running it as normal) the "autoplay" value can only be used for "force" use of autoplay. you could try =0 I suppose, but according to that doc it's not supported.


regarding your problem opening the folder, use explorer \PROGRAMS for shell\comma3\command.
Thanks BC, will do!


Edit: New idea...is it possible for one shell\verb\command to do more than one operation? Or at least menu label do more than one action?
Where's MagicSpeed?
Quote from: 'matt'
He's playing a game called IRL. Great graphics, *censored* gameplay.