Need menu help

Bob Stockler bob at trebor.iglou.com
Mon Jan 10 11:17:58 PST 2005


On Mon, Jan 10, 2005 at 01:43:34PM -0500, Bob Stockler wrote:
| On Mon, Jan 10, 2005 at 12:36:37PM -0500, Courtney wrote:
| | 
| | I went in and changed a menu...coming out I must have some keys and put in a
| | password for the menu...but I dont remember what it was...how do I remove
| | it?  Can I remove it?
| 
| On UNIX or Linux:
| 
|   awk 'NR < 3 { print }' menu_name > new_menu_name
|   chown filepro new_menu_name
| 
| then:
| 
|   (1) use dmakemenu to edit new_menu_name to see if that worked
|   (2) if it worked, save it and move new_menu_name to menu_name
| 
| On Windows or UNIX or Linux it's a choice on the
| MENU EDIT II Main Menu, and knowing the old password
| is not required.

On Windows or UNIX or Linux you can also do it in filePro
in an @MENU routine of an input processing table.  I won't
write the processing for you, but will describe it:

  1 - Open the menu in question in "rwt" (text) mode.
  2 - Use READLINE to read its first line and save it in a variable (seg1).
  3 - Use READLINE to read its second line and save it in a variable (seg2).
  4 - Close the file.
  5 - Open a menu (known not to be passworded) in "rwt" (text) mode.
  6 - Use READLINE to read its first line.
  7 - Use READLINE to read its second line.
  8 - Use READLINE to read its third line and save it in a variable (seg3).
  9 - Close the file.
 10 - Open the menu once again, this time in "crwb" (binary) mode.
 11 - Use WRITE to write these three menu segments back to the menu:
       x = write(handle,seg1 & chr("10"),"2801")
       x = write(handle,seg2 & chr("10"),"1901")
       x = write(handle,seg3 & chr("10"),"17")
 12 - Close the file - mission accomplished.

Bob

-- 
Bob Stockler - bob at trebor.iglou.com
Author: MENU EDIT II - The BEST Creator/Editor/Manager for filePro User Menus.
Fully functional (time-limited) demos available by email request (specify OS).


More information about the Filepro-list mailing list