You use ADWCleaner routinely from a DOpus button? You will want to keep it up to date, but the latest portable EXE file adwcleaner_7.1.1 has the version number in its filename. You can delete the version number, or update the button --- or now you can use the wildcard * in a button command:
OpenWild Path=D:\PortableSoftware\ADWCleaner Pattern=adwcleaner*.exe
You want the file to open immediately without any intervening dialogue?
OpenWild Path=D:\PortableSoftware\ADWCleaner Pattern=adwcleaner*.exe NoDialogueForOne
You keep all the old versions? The command brings them all up so that you can select the latest (whether or not the NoDialogueForOne switch is present). Or you can select two or more, or all of them, and you can then open all the selected files at once. To open the selected files, press Run.
You can't be bothered typing or copying the full directory path, or the files you want are scattered in subdirectories? Search subdirectories as well with
OpenWild Path=D:\PortableSoftware Pattern=adwcleaner*.exe SubDir
or even just Path=D: if you're happy to wait a bit.
In some directory, you have constantly changing text files that you edit in UEStudio, but don't want an open DOpus lister cluttering your desktop? Select the file you want and edit it with UEStudio by
OpenWild Path=<PathToMyTextFiles> Pattern=*.txt Pre=UEStudio
You can also add switches after the filename using Post.
You are in a DOpus lister and want to search the source or destination directory, and possibly subdirectories? Use the special arguments Path=source or Path=dest. (Flatview or Find would, of course, give you far more information.)
You want to vary the arguments after running the script? For example, change the editor to PSPad, or add a switch afterwards, or restrict the pattern, or look for CSV files instead, or search subdirectories. All the arguments can be changed from the screen by pressing Vary, including the path, which can be selected from a popup.
You have dated files of various types scattered through D: drive, and you want a particular one from April last year, again without cluttering your desktop with searching programmes? Press any OpenWild button, then Vary the arguments successively to
Pattern=*201704* and path=D: and SubDir
THE ADDIN SCRIPT AND ITS SIX ARGUMENTS
Path is the directory where the search takes place. Path=source and Path=dest work when the button is run from within a DOpus lister. As always, put the path string into double quotes if it contains a space.
The script inserts double quotes around the path whether or not it contains a space, and it inserts a space before and after it to separate it from any text provided by Pre and Post
Pattern is the normal DOS filename search pattern, using ? and *.
SubDir is a switch. When it is present, subdirectories are also searched.
Pre is anything you want before the filename in the command when it is run.
Post is anything you want after the filename in the command when it is run.
NoDialogueForOne is a switch. When present, it suppresses the dialogue when only one file is found, and opens that file immediately.
USING AND INSTALLING THE SCRIPT
Toggle the selection of individual files by pressing the appropriate button or pressing the appropriate letter. Or select or deselect all files at once. When ready, press Run to open all the selected files.
When more than 15 files satisfy the pattern, go Forward or Back through the screens selecting all the files that you want opened at once.
The limit of 15 files per screen can be reset by changing the value of nLinesMax near the top of the script. Reducing this number causes no problems, but if it is increased there may be problems with horizontal space and with accelerator keys.
The default path if no path is given or found is Desktop. This default can also be changed at the top of the script.
The option Vary in the dialogue allows all arguments to be changed while the script is running.
To install the script, download the file OpenWild.js.txt below. Then within DOpus, open Preferences --> Toolbars --> Scripts, and drag and drop the downloaded file onto the panel. The command OpenWild will now be available to use in any DOpus button.
OpenWild.js.txt (14.5 KB)