Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run "command window" from a menu 1

Status
Not open for further replies.

rickesilaw

Programmer
Jun 24, 2002
154
CA
We distribute an application to a number of firms and would like to have the ability to run the VFP command window from a menu or exe(password protected of course). Is there a way to do this?
 
Sure. Usually the run /n command works fine.

run n/ notepad.exe

If you're using a later version of Windows you can use the cmd.exe command. There are parameters that that you can pass it to make it run almost seamlessly.

PRESS the START / RUN options
type cmd
If you shell to dos you have the ability.

Type: HELP cmd
to obtain a list of parameters


Jim Osieczonek
Delta Business Group, LLC
 
Sorry. I think I misunderstood the question.

However, there is a utiltity program out there that allows users to have a command prompt from an application. I think it can be downloaded off the Universial Thread. Others may have more information on this.

Jim Osieczonek
Delta Business Group, LLC
 
I think we both weren't paying too close of attention here. I was thinking you meant restore the command window, not activate it from a distributed app.
With a distributed, the VFP developement environment isn't included, so you have to kind of roll your own if you want Fox to accept manual stuff. Here is a little routine I use to create my own 'developement' environment when troubleshooting at clients' sites:
Code:
DO WHILE .T.
   STORE SPACE(100) TO cmd
   @ 0,0 GET cmd
   READ
   IF 'QUIT' $ UPPER(cmd)
      RETURN
   ENDIF

   &cmd
ENDDO

Just define a window first and activate it, and this will give you a prompt similar to the old Foxbase 'dot' prompt.
But I would be very careful as to who is allowed to use it, and you may even want to restrict what commansd are available using a sort of DO CASE statement.


-Dave S.-
[cheers]
Even more Fox stuff at:
 
I downloaded the fox6command and think I will modify it so certain commands are disabled then use it. THx. Give rg a *
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top