WinFBE 1.7.4 - Project Path

Started by SeaVipe, August 15, 2018, 05:18:20 PM

Previous topic - Next topic

SeaVipe

Hi Paul,
Project path and Recent Projects:
My WinFBE  "C:\WinFBE_Suite\"
My test project "G:\SRC\BootTime\BootTimeTest.wfbe"
WinFBE.ini "MRUPROJECT_00={CURDRIVE}:\SRC\BootTime\BootTimeTest.wfbe"
Edit the above line to "MRUPROJECT_00=G:\SRC\BootTime\BootTimeTest.wfbe" and the recent projects is as per the attached image (the project opens correctly).
However, (after opening the project) close WinFBE and the line above reverts to {CURDRIVE}. Now when I open WinFBE, Recent Projects is blank.
Opening the project manually works okay but duplicates the ini file entry as "MRUPROJECT_01={CURDRIVE}:\SRC\BootTime\BootTimeTest.wfbe"
No big deal but worth noting...
Clive Richey

Paul Squires

This may seem odd but what you are seeing is actually correct based on the way I designed it. The "problem" is introduced when you run WinFBE off one drive and the projects off a different physical drive. The feature is there to allow WinFBE to easily run off of a removable USB stick or portable hard drive. Any media that could be assigned a drive letter randomly.

For example, in my case, on my primary development laptop I run WinFBE and all of my programming tools from the "X" drive. Which is basically a logical partition on the hard drive of the laptop that coexists along the main "C" drive. I also have a portable hard drive that I copy these to for (1) backup purposes, and (2) in case I decide to program on a different machine (which I do from time to time).

In order to determine MRU entries (because the project is not open at this point), WinFBE will fall back to checking the drive that WinFBE is running from. In your case that is the "C" drive. It then converts {CURDRIVE} to "C" and then checks for the existence of the project file which, of course, it does not find because the project is located on "G". Because it is not found, it is removed from the MRU list.

Once a project is opened, WinFBE uses the drive of the project (rather than the WinFBE exe) to determine {CURDRIVE} and do the substitutions.

Soooooo..... long story short..... for {CURDRIVE} to effectively work in all situations, your WinFBE exe and your projects need to be located in the same physical drive.

Confusing? Yes, of course it is! But it works.  :)


Paul Squires
PlanetSquires Software

SeaVipe

Thanks for the explanation.
I'll continue manually opening projects from a different drive. Easy peasy.
Clive Richey