Hi Frank
I did find the registry setting where %1 picks up the PJX path and
name. I tried adding -cConfig.FPW to the registry entry but it didn't
work. BTW Config.FPW is present in the VFP9.EXE folder and in the PJX
folder (just to be sure ...)
Yes, sort of. CD (without the ?) takes an optional argument (the folder
to change to) but without the argument works just like CURDIR()
Paul
On 09/05/2022 16:01, Frank Cazabon wrote:
OK, I think the file association of PJX with VFP9.exe has various
parameters you can set, but I don't know if that will do what you
want. You can find these settings somewhere in the registry if you
want to dig into it.
My setup is that I have a startup program configured (Tools | options
| File Locations) and when I start VFP from either a shortcut or
double clicking on a file like PJX, that program gets called where I
display a folder selection dialogue and once I select a folder I then
set default to that folder (all programmatically).
btw, what is "CD in the command window"? Do you mean "?CURDIR()" ?
Frank.
Frank Cazabon
On 09/05/2022 10:20 am, Paul Newton wrote:
Hi Frank
Thanks for your reply. I have tried as you suggest (Config.FPW and
Startup.PRG in the VFP9.EXE folder) but that still does not work.
Double-clicking on the PKX opens the project and CD in the command
window shows the current folder as the project's folder)
Paul
On 09/05/2022 15:10, Frank Cazabon wrote:
Paul,
I think the issue you are seeing is that when you double click on
the PJX, the VFP9.exe runs, but it runs with the default/start in
folder being the folder where vfp9.exe sits. If you set up your
config in that folder then you should get what you want, once you
can make it generic enough.
Frank.
Frank Cazabon
On 09/05/2022 10:07 am, Paul Newton wrote:
Thanks Jan
You say that double-clicking on a PJX works as usually but what are
the commands in your Start.PRG and do they get executed (in
addition to the project being opened).
Paul
On 09/05/2022 14:09, Jan Bucek wrote:
My config.fpw and start.prg for "command=do start" are placed in
VFP folder. Doubleclicking any PJX works for me as usualy.
Dne 8.5.2022 v 19:19 Paul Newton napsal(a):
Hi all
I have a folder containing a PJX, Config.FPW, Startup.PRG,
StartThor.PRGand StartHackCX.PRG
Config.FPW contains "Command=Do Startup.PRG"
Startup.PRG contains:
Do StartThor.PRG
Do StartHackCX.PRG
The problem is that none of these commands executes when
double-clicking on the PJX in Windows Explorer (or other file
manager), even though Sys(2019) points to the Config.FPW in the
folder in question.
Any ideas or is this just the way it works?
Paul Newton
--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message:
https://leafe.com/archives/byMID/24240f46-f433-f3e0-271d-6ffef6706...@gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.