source: branches/MKIMES/dll/ipf/command.ipf@ 1036

Last change on this file since 1036 was 2, checked in by root, 23 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.6 KB
Line 
1:h2 res=90700 name=PANEL_COMMAND.Editing Commands
2:i1 id=aboutCommands.Editing Commands
3:artwork name='\fm3\bitmaps\command.bmp' align=center.
4This dialog allows you to edit the commands that are available in the
5Commands submenu. There is always a :hp1.Do it yourself:ehp1. command
6in the Commands submenu, and it is the default for the conditional
7cascade. The Do it yourself command supplies the names of selected files
8as the command line and allows you to enter a command to be performed on
9the files in an entry field. Note that OS/2 command lines are limited
10to 1,000 characters.
11:p.
12To add a command to this submenu, fill in the entry fields and set the
13radio buttons and checkboxes that control session type as desired (these
14are explained in more detail in the help for :link reftype=hd
15res=90600.Editing Commandline:elink., except for :hp1.Each:ehp1., which
16means that the command will be run once for each selected file, and
17:hp1.Prompt:ehp1., which means that the command will display a dialog
18that allows the user to edit the command line before running), then
19click :hp1.Add.:ehp1..
20:p.
21To delete a command, select it in the listbox, then click
22:hp1.Del:ehp1.. You should be aware that the command deleted
23is the one matching the entry field, specifically, the title field.
24:p.
25To change a command, delete it, edit the entry fields, radio buttons and
26checkboxes, then add it.
27:p.
28The :hp1.Find:ehp1. button brings up a standard OS/2 open dialog that
29you can use to point-and-click at the desired executable file. It's
30pathname will be entered into the command line entry field.
31:p.
32The :hp1.Environment:ehp1. MLE control lets you enter environment
33strings for the program to inherit. Generally speaking, this is only
34for running DOS programs where any strings entered here are interpreted
35as DOS settings. For example, :hp3.IDLE_SECONDS=5:ehp3. would adjust the
36DOS setting IDLE_SECONDS to 5. Names of DOS settings are as shown in
37the Settings notebook for a DOS program.
38:p.
39See also&colon.
40.br
41:link reftype=hd res=100075.Metastrings:elink.
42.br
43:link reftype=hd res=95800.Reordering Commands:elink.
44
45:h3 res=95800 name=PANEL_REORDERCOMMANDS.Reordering Commands
46:i1 id=aboutReorderingCommands.Reordering Commands
47This dialog, accessed from the Edit Commands dialog, allows you to
48rearrange the order of Commands. You take selected items from the left
49listbox and Add them to the end of the right listbox with the
50:hp1.Add>>:ehp1. button. When you've moved everything to the right
51listbox, click :hp1.Okay:ehp1.. Click :hp1.Cancel:ehp1. if you change
52your mind.
53:p.
54In reality, you don't need to move everything to the right listbox. You
55can move only what you want moved to the top of the list, then click
56Okay. Anything remaining in the left listbox is added to the end of
57what's in the right listbox.
58:p.
59The :hp1.<<Remove:ehp1. button can be used to move selected items from
60the right listbox to the bottom of the left listbox.
61
62
63:h3 res=100075 name=PANEL_METASTRINGS.Metastrings
64:i1 id=aboutMetastrings.Metastrings
65The following "metastrings," or replaceable parameters, can be used in
66command lines&colon.
67:parml compact tsize=6 break=none.
68:pt.%$
69:pd.drive letter
70:pt.%a
71:pd.full pathnames
72:pt.%A
73:pd.full pathnames, no leading drive letters
74:pt.%r
75:pd.full pathnames, no quoting under any circumstances
76:pt.%R
77:pd.full pathnames, no leading drive letters, no quoting
78:pt.%c
79:pd.command processor specified in %COMSPEC%
80:pt.%f
81:pd.filenames, no paths
82:pt.%F
83:pd.filenames, no paths or extensions
84:pt.%e
85:pd.extensions
86:pt.%p
87:pd.path of execution (d&colon.\directory)
88:pt.%P
89:pd.path of execution (\directory)
90:pt.%t
91:pd.designated Target directory
92:pt.%u
93:pd.path of first datafile (d&colon.\directory)
94:pt.%U
95:pd.path of first datafile (\directory)
96:pt.%d
97:pd.full pathnames of all open Directory Containers
98:pt.%D
99:pd.full pathname of current directory in Drive Tree
100:pt.%!
101:pd.listfile name (first places full filenames in a list file; user
102Command should delete listfile when complete, but FM/2 will clean any
103left over up when FM/2 closes). This is an advanced command -- see
104EXAMPLE.CMD in the FM/2 distribution archive for a skeleton program that
105you can use to do work on the filenames listed in the listfile. You can
106use %! more than once in the same command line -- the listfile will only
107be built once, but the name of that listfile will be inserted each time.
108:pt.%%
109:pd.a percent sign
110:eparml.
111:p.
112When you enter a metastring into a command line, the metastring is
113replaced with the appropriate text. For example, "%c /C MYCMD.CMD %a"
114might become "CMD.EXE /C MYCMD.CMD d&colon.\file1 d&colon.\file2
115d&colon.\file3".
Note: See TracBrowser for help on using the repository browser.