Executing Winderz fP Menu Items
DataDoIt
filepro at datadoit.com
Thu Mar 31 09:17:12 PST 2005
|-----Original Message-----
|From: Kenneth Brody [mailto:kenbrody at bestweb.net]
|Sent: Thursday, March 31, 2005 12:02 PM
|To: filepro at datadoit.com
|Cc: 'Filepro-List'
|Subject: Re: Executing Winderz fP Menu Items
|
|Quoting DataDoIt (Thu, 31 Mar 2005 09:16:54 -0500):
|
|> fPODBC
|>
|> In a *nix/fP menu script, you can execute other filePro menu
|items by
|> referencing them as such:
|>
|> /fp/menus/admin.-1
|>
|> In a Winderz/fP menu script, trying something like:
|>
|> CALL c:\fp\menus\admin.-1
|>
|> Will launch Winderz file association prompt thing because it doesn't
|> know which program to run to execute a '.-1' file.
|> How can another menu script be referenced from a menu script in
|> Windows filePro?
|
|Windows batch files must have a ".bat" extension.
|
| copy c:\fp\menus\admin.-1 temp.bat
| call temp.bat
| del temp.bat
|
|On an NT-class system (ie: NT, XP, 2000, 2003), you can avoid
|possible collision with:
|
| set tempname=xx%RANDOM%.bat
| copy c:\fp\menus\admin.-1 %tempname%
| call %tempname%
| del %tempname%
|
|--
--------------------------------
Great idea! Thanks.
-MikeR
More information about the Filepro-list
mailing list