Send files to program

I need help creating a command/button sending files to a program instead of using drag&drop.

That's quite an open-ended question. :slight_smile:

What part do you need help with?

Which program?

Does it have a command-line interface? If you run it with a filename will it open that file?

It's PowerISO. I like to add files to burn.

I'm able to add files from a collection via drag&drop but not with commandline. You can add files to create an image directly with dos-command but not to the main program just to burn.

If drag & drop is the only way to add files to it then there's not much you can do to get the files into it without using drag & drop. Maybe AutoIt or AutoHotkey could be used to simulate the drag & drop? I'm not sure if they can do that but it's worth looking into.

Does it add a context menu item when you right-click files? You can often hook those into Opus buttons. Command-line is usually best, context menu can often be used as well, but programs which only accept files via drag & drop may be stuck using drag & drop.

I'm not sure because I don't use PowerIso, but I found this:

PowerISO Command Line Parameters
downloadatoz.com/manual/po/p ... ommand.htm

[quote="leo"]That's quite an open-ended question. :slight_smile:

What part do you need help with?

Which program?

Does it have a command-line interface? If you run it with a filename will it open that file?[/quote]

Yes, excellent questions, but is there some sort of generic FAQ around that would help people in the same boat? You don't point to one, so I guess not.

I ask because I face the same challenge. While someone here might be able to help, a more general "decision tree" thing might make it easier for people to adapt a standard script.

For example, we all know that "%1" is usually good for sending a file name in a command line.

Are there any other general tips. How about sending a selection of files?

I guess that depends on the recipient software.

Do they all work differently? I wouldn't be surprised.

Come to think of it, a single FAQ with a list of programs and command line options for DUpus buttins might be a great resource.

So, my first search will be for other threads on command line stuff. Then I can play around with my own program, something called "Switch" for converting sound files between different formats.

There's no general FAQ on this. A general one could be useful to help people know which direction to head in. The problem I see is it's so dependent on the program you're trying to talk to.

Most programs will accept a single filename on the command line with no further arguments, but not all. Some programs will take multiple filenames, others only one, and others don't work from the command-line at all...

So it requires that people first learn how the program they want to run can work. Once they've done that the Opus part is easy, assuming the program in question can do what they want via the command-line.

Example commands for different programs can be found in the Buttons forum, though using them as examples might not be ideal as you often have to download a toolbar to look inside of it.

A FAQ or tutorial on this isn't a bad idea, though. Even if it can't remove the need for people to learn about the programs they want to automate it would be useful to walk people through the general concepts so they know what to look for. It'd fit in well as a sequel to my toolbar editing video. That was always intended to be multi-part but I haven't gotten around to making another instalment. (Planning, recording and editing those videos takes quite a bit of time.)

The context menu of PowerISO allows to add selected files. Unfortunatley it's an dll, so I can't get the command to use it within DO.

If you make a button which runs ContextMenu SHOWCMDS then select a file and click the button, does the list that appears mention any PowerISO items?

If it does and they have a word in brackets at the end then you should be able to make a button which runs that context menu item.

That's what is listed:
.
.
99: PowerISO -> Add to image
100: PowerISO -> Add to testfile.daa
.
.

Damn. :frowning: There isn't a reliable way to run that. If the context menu items had names in brackets it would've been good. :frowning:

(You can run the items by number but the numbers can change, especially with the generic filetypes, so I wouldn't recommend doing that in this case.)

You probably missed my reply above (or isn't this what you are looking for)?

PowerISO Command Line Parameters
downloadatoz.com/manual/po/p ... ommand.htm