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

vfp9.exe

Status
Not open for further replies.

joshuaguilty

Programmer
Apr 26, 2005
81
CA
I used to have "start prog1.prg" in my batch file, and since I switch to vfp9.exe it refuses to do it and I have to run it manually.
Could anyone tell me what I should do to change my batch file.
Thank you.
 

The most likely explanation is that the PRG extension is no longer associated with Visual FoxPro. You can fix that by going to Tools / Folder Options / File Types in Windows Explorer, and creating the required association.

Alternatively, you can change the batch file to run VFP directly, passing the name of your PRG as a command-line parameter.

Better still, do without the batch file altogether. As Don says, you don't really need it. Use a Config.fpw instead.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
I am not familiar with Fox Pro, nor "config.fpw".
In regards of the first suggestion with "Tools/...", I would try.
Second suggestion, I have tried to use "start "Program files/.../vfp9.exe" ".../xxx.prg", somehow it does not work.
Last one I would be pleased if you could provide more details.
THANK YOU!
 

Perhaps we can step back and find out exactly what you are trying to achieve.

What exactly is Prog1.PRG? Is it the actual application that you want a user to run? Or is it a program that customises the VFP development environment in some way? And what do you want to do after you've run it? Do you want to work in the development environment, or what?

In general, using batch files or the START command isn't a common way of launching VFP or a VFP application. For applications that an end-user runs, it's better to set up a desktop shortcut.

If your aim is to launch the VFP development environment, you can do so by double-clicking on VFP's own shortcut, either in the Start menu, desktop or folder window.

Hope this makes sense.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top