source: trunk/dll/ipf/command.ipf@ 1036

Last change on this file since 1036 was 498, checked in by root, 19 years ago

ADD Command Dialog Enhancement Help

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