Shell Open for Files Thread last updated on 2006-05-28 11:05:10

Posted by member 280260 on 2006-05-28 00:18:56

Sorry if I'm not explaining this very clearly...

I've got a dock in my theme. Right now, folders and programs dragged onto the dock can be run by calling !execute.

My real hope here is that *any* file can be dragged on to the dock and run. The problem is that calling !execute on a file rather than an executable does nothing. Can anyone think of a way for me to call the default "shell open" once I have a filename?

Posted by member 1 on 2006-05-28 01:05:35 link

Don't think so but with some LUA scripting and cmdlgs you might be able to get it done.

Posted by member 212670 on 2006-05-28 01:06:28 link

I just tested this, and it worked on all files. For files without an association, windows even popped up with the usual thing asking what I wanted to open the file with.

LabelOnDrop "%[droppath]%"

This also worked fine, too:

LabelOnDrop !execute [!alert "Executing %[droppath]%"]["%[droppath]%"]

Maybe you forgot quotes?

(Tested with the following: .ini, .txt, .png, .chm, .exe, and an couple unassociated files.)

Maybe I didn't get what you meant?

Posted by member 280260 on 2006-05-28 11:05:10 link

Weird...it's working now. Thanks anyway.