I can't get {allfilepath} to work

In Directory Opus 12, I have created a new action for File Types - All files and folders. I have an external application I have written and I want to pass one or more files or folders to it, so I set my context menu's application to launch as
"c:\MyApp.exe" {allfilepath}
However, when I select multiple files, I get multiple instances of my application launch (instead of a single instance), and each instance is passed the string "{allfilepath}" instead of the actual file path of the selected file. Why isn't {allfilepath} working for me?

Did you pick the right type/function?

image

In All files and folders, the dialog is not as you've shown, so the highlighted option is not available, and neither are the buttons (Edit, ...)

Delete the menu item you have and create a new one.

The type can't be changed to all possibilities on existing items (as one type goes in the Windows registry and the other goes in the Opus config files).

The reason I posted this question is that I wrote my own application (in C# using Visual Studio 2013) to launch the Norton virus scanner. It works well for me. I tried to upload the source and executable files (zipped), and instructions (word document) on setting up Directory Opus 12. Unfortunately this support page won't allow me to post them.

Let me know if you're interested, email me on ramsesyouhana@optusnet.com.au and I can email the files to you.

Thanks Leo. I don't quite understand what you have said. I even tried it with notepad and paint shop pro 7, and the {allfilepath} didn't work with these either.
Anyway, I got my application launching working using "%1". Only problem is it launches multiple instances, one for each selected item.

Also, I tried to post my solution to this post, but zip and word docx files are not permitted. If you want, I can send it to you (see this post).

The Type drop-down must be set to Run and Opus function (not supported in Explorer), as shown in Lxp's screenshot above, for Opus-specific codes like {allfilepath} to work.

If you already created a context menu menu item with a different type, you may not be able to change its type to the correct one. You have to delete it instead, and create a completely new menu item, which will give you more options for the type than when editing an existing menu item.

Zip files should work fine.

Word documents are not an allowed attachment type, unless you zip them.

But, even in a zip, Word docs are a bad way to share information as not everyone has Word, so I'd urge the use of something else, e.g. HTML or even plain text is better than a Word doc. PDF if you really have to. :slight_smile:

Thanks Leo. Your suggestion worked. I'm not sure why this option was not available when I originally created the item. I'll retest my application and re=post it as you suggested. I hope it helps others.

Here is the instruction Word document:
How to Add Scan Now to DOpus.zip (226.7 KB)

Here is the source, project and executable files (for Visual Studio 2013):
LaunchNavw32.zip (23.0 KB)

Hope this helps.

1 Like