D&Do v. 1.0 Prev Next Top
Testing the Metascript
We assume that D&Do is already started. Reload the DirCreate.ms metascript. We get the following display (similar to the previous one, except for the target area).

Note: Up to that point, the freeware of D&Do behave the same way as its commercial version. Beyond that point, instead of executing the program, the freeware version will simply generate an error message at its status line:
ERR: Registration required for tagged drops feature
However, if you start D&Do from a DOS box, you will be able to see the resolved command line(s) in that box.
Let us illustrate with a concrete example (on a Windows system):
- If you drop
in the following items into the target area:
- The directory: C:\WINDOWS\TEMP
The status line will display:
0 DIR C:\WINDOWS\TEMP
- A text fragment (e.g. "my Own\words")
The status line will display, for example:
1 TXT my Own\words
- Keep the default variant. If needed, type in the "b" key (any non-associated key) in order to force the selection of the default variant of the argument list template:
tutorial/DirCreate.py "*0" *# -C
and the target area will display again "BY1 ID= Dest Dir" and the drop list will be cleared.
- then you click the target area, D&Do will generate the resolved command:
pythonw.exe tutorial/DirCreate.py "C:\WINDOWS\TEMP" "my Own\Word\" -C
- and execute it. The script outputs nothing but it will create the subdirectory my-Own_Word_ under the directory C:\WINDOWS\TEMP.
Both versions (freeware and registered) output the resolved command into the system output, which is visible only when you start D&Do from a Shell/DOS box. The freeware version will not execute the command, however.
REMINDER: Remember also that setting EXEC to none has the effect of outputting the resolved argument list into the system clipboard. You can debug metascript files that way.
We have also explored a few more metascript parameters and realized that it is easier to create any new metascript file from a metascript template.
Prev Next Top
Copyright(c) 2003-2004 Marcel St-Amant