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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GPG and the Run Command

Status
Not open for further replies.

PaulBarbeau

Programmer
Nov 23, 2000
109
CA
I am trying to run GPG to decode a file and i am having problem getting it to run. When i call it from inside VFP it says the exe is not there. Has anyone done this?

Also i read that i should not really be using the "run" command i should use "ShellExecuteEx" insted. Anyone have a sample on how to use this to run a command?

Paul
 
Thanks for the help i got it work. However it does not wait untill the job is finish to continue my VFP code. Do you know of a wait to make it pause untill the job is finished?

Paul
 
Do you know of a wait to make it pause untill the job is finished?

In your VFP code, launch GPG, then wait a couple of seconds (e.g. with WAIT.. TIMEOUT) to give it time to get started. Then run a loop, using my IsRunning() function to check if it is still running. You can get a copy of IsRunning() from:

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top