Executing Winderz fP Menu Items

Kenneth Brody kenbrody at bestweb.net
Thu Mar 31 09:01:52 PST 2005


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%

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list