You are here

Autorun.inf and folder

8 posts / 0 new
Last post
klompie
Offline
Last seen: 17 years 9 months ago
Joined: 2007-01-29 12:55
Autorun.inf and folder

Hi,

i want to use an autorun.inf file on my usb to go to a specific folder on doubleclick on the drive

i got this:

shell=pam
shell\pam\command=folder/StartPortableApps
shell\pam=Start PortableApps

but now it starts the program StartPortableApps.exe

i just want to go to /folder/ do the files in the root are not shown

how to do this??

vexorian
Offline
Last seen: 17 years 6 months ago
Joined: 2007-01-27 12:45
probably

you probably need an extra / at the end of the command.

Else, run explorer.exe on that folder instead of calling that folder directly.

klompie
Offline
Last seen: 17 years 9 months ago
Joined: 2007-01-29 12:55
What do you mean with an

What do you mean with an extra / at the end of the command

plz give an example

also

explorer.exe on that folder instead of calling that folder directly

how to do that

klompie
Offline
Last seen: 17 years 9 months ago
Joined: 2007-01-29 12:55
anybody?

anybody?

Tim Clark
Tim Clark's picture
Offline
Last seen: 13 years 7 months ago
Joined: 2006-06-18 13:55
Slash after "folder/StartPortableApps"

I think he meant:

shell=pam
shell\pam\command=folder/StartPortableApps
shell\pam=Start PortableApps

put a "/" at the end of "shell\pam\command=folder/StartPortableApps/

Things have got to get better, they can't get worse, or can they?

klompie
Offline
Last seen: 17 years 9 months ago
Joined: 2007-01-29 12:55
no it doesn't work but thanx

no it doesn't work

but thanx for thinking with me

arqbrulo
arqbrulo's picture
Offline
Last seen: 4 years 9 months ago
Joined: 2006-08-10 16:38
I've got it

I think what you are trying to do is when you open my computer and double-click on the usb drive, instead of going to E:\ it will take you to E:\Documents.

If that's the case, use this:

shellexecute=explorer ".\Documents"

or

shell=Documents
shell\Documents=Documents
shell\Documents\command=explorer ".\Documents\"

The difference is that the first one displays "AutoPlay" in bold when you right-click and the second displays "Documents" in bold, but both work the same. The only thing is that with either one it opens the folder in a new window instead of the same one.
---------------
Marge: Homer, the plant called. They said if you don't show up tomorrow don't bother showing up on Monday.
Homer: Woo-hoo. Four-day weekend.

"In three words I can sum up everything I've learned about life: it goes on." -- Robert Frost
"In three words I can sum up everything I've learned about life: baby ain't mine." -- Adam Holguin

klompie
Offline
Last seen: 17 years 9 months ago
Joined: 2007-01-29 12:55
this works thanx

this works

thanx

Topic locked