home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware 1 2 the Maxx
/
sw_1.zip
/
sw_1
/
WINDOWS
/
UTILS
/
WCMD110.ZIP
/
WCOMMAND.MNU
< prev
Wrap
Text File
|
1992-03-14
|
4KB
|
110 lines
; WCOMMAND.MNU - a sample menu template for Windows Command!
; Note: Any line with a semicolon (;) in the first character position is considered
; to be a comment!
; The first line below shows the format for creating a popup menu. The opening
; bracket ({) indicates to Windows Command that there will be menu items inside a popup
; menu.
; Note the ampersand (&) in the word "Execute" below. That character is a special
; character in Windows which will make the character following the ampersand a "hot key"
; to the menu item. This means that if you press ALT (to access the Windows Command menu)
; and then 'X', the "Execute" submenu will be selected, just as if you selected it with
; a mouse.
E&xecute{
; You can also nest popup menus inside other popups. "Applications" below demonstrates
; this. Note that it is in the same format as "Execute" above. All leading tabs and
; space characters before the menu titles are ignored.
&Applications{
; Now we start with menu items. The format for these are menu title, followed by an
; equal sign (=), and then the command line to be executed. The example immediately
; below is "Calculator" (note the use of the ampersand once again). This line creates
; a menu item named "Calculator" with the letter "a" as a hot key, that when selected
; will execute the command "cdx calc.exe" at the command line. This format is standard
; for menu items, and you can see it repeated in each menu item below.
C&alculator=cdx calc.exe
&Calendar=cdx calendar.exe
Car&dfile=cdx cardfile.exe
C&lock=cdx clock.exe
; Note the next line, "Notepad". The command line is preceded with a semicolon (;). What
; this allows you to do is put the command on the command line, but not execute it. You
; can then add a filename, or otherwise modify the command before executing it. Be careful
; to allow no spaces between the equal sign (=) and the semicolon (;)!
&Notepad=;notepad.exe
; @COL@= is a special Windows Command menu title which will make all the following menu
; items begin on a new column. The columns will not be separated by a vertical line, as
; the @COLBAR@= special menu title does (@COLBAR@= is illustrated below).
@COL@=
&Paintbrush=;pbrush.exe
&Recorder=cdx recorder.exe
&Terminal=cdx terminal.exe
&Write=;write.exe
}
&Games{
&Reversi=cdx reversi.exe
&Solitare=cdx sol.exe
}
S&hells{
&File Manager=cdx winfile.exe
&MSDOS Executive=cdx msdos.exe
&Program Manager=cdx progman.exe
}
&System{
C&lipboard=cdx clipbrd.exe
&Control Panel=cdx control.exe
&PIF Editor=pifedit.exe
P&rint Manager=cdx printman.exe
&Task Manager=cdx taskman.exe
; The @LINE@= special menu title will put a horizontal separating line in the menu.
@LINE@=
Windows &Help=cdx winhelp.exe
Windows &Setup=cdx setup.exe
}
}
; Start a new top-level menu!
&Sample Commands{
; Note that any command that can be typed at the command line can be executed using
; the menu. Below, the multiple commands per line feature is demonstrated, by
; executing a "date" command, followed by a "time" command.
&Date and Time=date^time
Dos &Path=path
Dos &Environment=set
; Here is the @COLBAR@= special menu title, as mentioned above. It will begin a new
; menu column, but will separate the columns with a vertical bar.
@COLBAR@=
&Version and Free Memory=ver^mem
Volume &Serial and Label=ser^vol
&Wide Dir=dir /w
; This is a "do-nothing" system of submenus, just meant to bring your attention to the
; flexibility of the Windows Command definable menu structure.
SubMenu{
SubMenu2{
SubMenu3{
SubMenu4{
SubMenu5{
Congratulations!=rem it was pointless, but wasn't it fun?
}
}
}
}
}
}
}