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 ---
I never open VFP by using Explorer so hard to say what’s happening. I’d check the help for the precedence on how config.fpw gets picked up but otherwise you can create shortcuts to your PJXs and force a specific file by using the -c switch.
I’m also a big (maybe the only) fan of Environment Manager in VFP. I have it set to run on startup and from there I can just pick which thing I need to work on, and have it set up the full environment, including associated projects.
--
rk
From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Paul Newton Sent: Sunday, May 8, 2022 1:20 PM To: profoxtech@leafe.com Subject: Config.FPW command ignored when double-clicking on PJX in Explorer
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 ---
_______________________________________________ Post Messages to: ProFox@leafe.commailto:ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profoxhttps://protect-us.mimecast.com/s/_D1tCmZ2nYc6r9DSQYdLC?domain=mail.leafe.com OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtechhttps://protect-us.mimecast.com/s/PLKTCn5YogIxYkjiErj7J?domain=mail.leafe.com Searchable Archive: https://leafe.com/archiveshttps://protect-us.mimecast.com/s/wP_fCo2v0jh80QZiW6qzg?domain=leafe.com This message: https://leafe.com/archives/byMID/e00103e5-86e5-3183-e573-8eef461c3ed7@gmail....https://protect-us.mimecast.com/s/1FWTCpYRqkuyB7Ktkkj56?domain=leafe.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.
Hi Richard
Many thanks for your reply. I haven't used Environment Manager much but that's definitely an approach to consider. I really don't want to create shortcuts for PJXs that I only open rarely on an ad hoc basis (as opposed to those that I am actively working on).
It's still frustrating that the Command=Do Startup in Config.FPW seems to get bypassed when double-clicking on a PJX - but perhaps that's just the way it is.
Paul
On 09/05/2022 13:51, Richard Kaye wrote:
I never open VFP by using Explorer so hard to say what’s happening. I’d check the help for the precedence on how config.fpw gets picked up but otherwise you can create shortcuts to your PJXs and force a specific file by using the -c switch.
I’m also a big (maybe the only) fan of Environment Manager in VFP. I have it set to run on startup and from there I can just pick which thing I need to work on, and have it set up the full environment, including associated projects.
--
rk
From: ProfoxTechprofoxtech-bounces@leafe.com On Behalf Of Paul Newton Sent: Sunday, May 8, 2022 1:20 PM To:profoxtech@leafe.com Subject: Config.FPW command ignored when double-clicking on PJX in Explorer
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
Post Messages to:ProFox@leafe.commailto:ProFox@leafe.com Subscription Maintenance:https://mail.leafe.com/mailman/listinfo/profoxhttps://protect-us.mimecast.com/s/_D1tCmZ2nYc6r9DSQYdLC?domain=mail.leafe.com OT-free version of this list:https://mail.leafe.com/mailman/listinfo/profoxtechhttps://protect-us.mimecast.com/s/PLKTCn5YogIxYkjiErj7J?domain=mail.leafe.com Searchable Archive:https://leafe.com/archiveshttps://protect-us.mimecast.com/s/wP_fCo2v0jh80QZiW6qzg?domain=leafe.com This message:https://leafe.com/archives/byMID/e00103e5-86e5-3183-e573-8eef461c3ed7@gmail....https://protect-us.mimecast.com/s/1FWTCpYRqkuyB7Ktkkj56?domain=leafe.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. _______________________________________________ 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/MN2PR10MB3407AA978451BA49085220BCD2C69@MN2P... ** 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.
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html ---
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]
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]
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]
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]
This may not be exactly what you are looking for Paul and I am no expert but you might look into creating a "Send To" shortcut. I think with a little trial and error you can get that doing what you want. Here is an article, but if it doesn't get you where you want I'd keep looking on this path: https://devblogs.microsoft.com/oldnewthing/20170403-00/?p=95885#:~:text=The%... .
On Mon, May 9, 2022 at 9:21 AM Paul Newton paul.newton.hudl@gmail.com 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]
Thanks for that suggestion Jeff.
I'm working on something else right now but will look into it tomorrow ... will post my findings.
Paul
On 09/05/2022 15:53, Jeff Roberts wrote:
This may not be exactly what you are looking for Paul and I am no expert but you might look into creating a "Send To" shortcut. I think with a little trial and error you can get that doing what you want. Here is an article, but if it doesn't get you where you want I'd keep looking on this path: https://devblogs.microsoft.com/oldnewthing/20170403-00/?p=95885#:~:text=The%... .
On Mon, May 9, 2022 at 9:21 AM Paul Newtonpaul.newton.hudl@gmail.com 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]
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]
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]
Many thanks, Frank (and to everybody who chimed in with suggestions).
Setting Tools~Options~File locations~Startup program to Start.PRG in the VFP9.EXE folder did the trick!
And, of course, thanks to Ed without whom all this help would not be available.
Paul Newton
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]