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.
|
---|
18 | This dialog allows you to edit the commands that are available in the
|
---|
19 | Commands submenu. There is always a :hp1.Do it yourself:ehp1. command
|
---|
20 | in the Commands submenu, and it is the default for the conditional
|
---|
21 | cascade. The Do it yourself command supplies the names of selected files
|
---|
22 | as the command line and allows you to enter a command to be performed on
|
---|
23 | the files in an entry field. Note that OS/2 command lines are limited
|
---|
24 | to 1,000 characters.
|
---|
25 | :p.
|
---|
26 | To add a command to this submenu, fill in the entry fields and set the
|
---|
27 | radio buttons and checkboxes that control session type as desired (these
|
---|
28 | are explained in more detail in the help for :link reftype=hd
|
---|
29 | res=90600.Editing Commandline:elink., except for :hp1.Each:ehp1., which
|
---|
30 | means 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
|
---|
32 | that allows the user to edit the command line before running), then
|
---|
33 | click :hp1.Add.:ehp1. Clicking Okay will also add a new command provided that the
|
---|
34 | command's title has been changed.
|
---|
35 | :p.
|
---|
36 | To delete a command, select it in the listbox, then click
|
---|
37 | :hp1.Del:ehp1.. You should be aware that the command deleted
|
---|
38 | is the one matching the entry field, specifically, the title field.
|
---|
39 | :p.
|
---|
40 | To change a command, edit the entry fields, radio buttons and
|
---|
41 | checkboxes, then replace it.
|
---|
42 | :p.
|
---|
43 | The :hp1.Find:ehp1. button brings up a standard OS/2 open dialog that
|
---|
44 | you can use to point-and-click at the desired executable file. It's
|
---|
45 | pathname will be entered into the command line entry field.
|
---|
46 | :p.
|
---|
47 | The :hp1.Environment:ehp1. MLE control lets you enter environment
|
---|
48 | strings for the program to inherit. Generally speaking, this is only
|
---|
49 | for running DOS programs where any strings entered here are interpreted
|
---|
50 | as DOS settings. For example, :hp3.IDLE_SECONDS=5:ehp3. would adjust the
|
---|
51 | DOS setting IDLE_SECONDS to 5. Names of DOS settings are as shown in
|
---|
52 | the Settings notebook for a DOS program.
|
---|
53 | :p.
|
---|
54 | See 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
|
---|
62 | This dialog, accessed from the Edit Commands dialog, allows you to
|
---|
63 | rearrange the order of Commands. You take selected items from the left
|
---|
64 | listbox 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
|
---|
66 | listbox, click :hp1.Okay:ehp1.. Click :hp1.Cancel:ehp1. if you change
|
---|
67 | your mind.
|
---|
68 | :p.
|
---|
69 | In reality, you don't need to move everything to the right listbox. You
|
---|
70 | can move only what you want moved to the top of the list, then click
|
---|
71 | Okay. Anything remaining in the left listbox is added to the end of
|
---|
72 | what's in the right listbox.
|
---|
73 | :p.
|
---|
74 | The :hp1.<<Remove:ehp1. button can be used to move selected items from
|
---|
75 | the right listbox to the bottom of the left listbox.
|
---|
76 |
|
---|
77 |
|
---|
78 | :h3 res=100075 name=PANEL_METASTRINGS.Metastrings
|
---|
79 | :i1 id=aboutMetastrings.Metastrings
|
---|
80 | The following "metastrings," or replaceable parameters, can be used in
|
---|
81 | command 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
|
---|
117 | Command should delete listfile when complete, but FM/2 will clean any
|
---|
118 | left over up when FM/2 closes). This is an advanced command -- see
|
---|
119 | EXAMPLE.CMD in the FM/2 distribution archive for a skeleton program that
|
---|
120 | you can use to do work on the filenames listed in the listfile. You can
|
---|
121 | use %! more than once in the same command line -- the listfile will only
|
---|
122 | be built once, but the name of that listfile will be inserted each time.
|
---|
123 | :pt.%%
|
---|
124 | :pd.a percent sign
|
---|
125 | :eparml.
|
---|
126 | :p.
|
---|
127 | When you enter a metastring into a command line, the metastring is
|
---|
128 | replaced with the appropriate text. For example, "%c /C MYCMD.CMD %a"
|
---|
129 | might become "CMD.EXE /C MYCMD.CMD d&colon.\file1 d&colon.\file2
|
---|
130 | d&colon.\file3".
|
---|