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!

How to transfer vfp environment from one system to another ? 1

Status
Not open for further replies.

SSAAHW

Programmer
Aug 20, 2016
18
IN


This should include macros setting and other environment settings.

Is this import of setting possible with using config.fpw file?
 
fpw is only for settings.

You store macros in fky files, don't you?
See SAVE MACROS/RESTORE MACROS

And many environment settings are only about IDE, not of a final EXE, are you asking for IDE or EXE?
The main thing to transfer is your foxuser.dbf

Bye, Olaf.
 
Here's a little trick that might help you:

1. Open the Debugger and activate the Debug Output window.

2. Go to Tools / Options.

3. Hold down Shift and click OK.

4. In the Debug Output window, you will now see all the settings in the form of VFP commands (e.g SET TALK OFF). Copy and paste these into a PRG file, transfer it to your new instance of VFP, and run it.

5. In the new instance, open Tools / Options, and click Set As Default.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
There are also a few settings stored in the Windows Registry. These include things like desktop colours and fonts. If you want to transfer those, do the following:

1. In the source system, run Regedit.

3. Navigate to HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\X (where X is your VFP version number, e.g. 9.0).

3. Select File / Export, and tick "Selected branch".

4. Copy the resulting file (extension REG) to the target system.

5. Run Regedit on the target system.

6. Select File / Import, and navigate to the REG file that you just copied.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
You can shorten Mikes advice, instead of 5. and 6. just double click the reg file copied to the target system, that'll apply the registry branch.

Bye, Olaf.
 
Thank you very much to both MikeLewis and OlafDoschke.
I have just begun programming and that too with vfp, am an O level programmer. Your answers especially last three appealed to me quite well and solved my issue. Thanks a lot again.
 
And also thanks for letting us know how to classify your knowledge.

My first post was assuming you asked for what you could do with a config.fpw in conjunction with a built EXEcutable, as these types of configs can not only be used for VFP itself, but also on executables. Besides having macros defined you wish to apply on an executable or VFP itself also is not a beginners feature. Seems you already worked with VFP on your old computer quite a while.

Bye, Olaf.
 
Is there a way to save detail and columns view when opening a table?
I always have to click detail view, then re arrange the columns and sort by "modified date" column
KF
 
@OlafDoschke "... Seems you already worked with VFP on your old computer quite a while."
To be a bit more clear, till now I have not started working with macros and have merely an introduction of its working. But I had an assignment from my senior to find about importing macros also besides that of other env. setting.
 
Is there a way to save detail and columns view when opening a table?

What do you mean by that? There is no "detail" or "column" view when opening a table. Opening a table does not cause anything visible to happen, so the question of a "view" doesn't arise.

Maybe you mean that you want to save the "view" when browsing a table. But, even so, there is no "detail" or "column" view, and no way to sort the table by modified date.

Or maybe you are referring to a folder window within Windows. That does indeed have detail and list views, and it is possible to sort on modified date, but it has nothing to do with VFP. If that is what you asking about, you should do so in one of the Windows forums here on Tek Tips.

If none of the above applies to your question, please explain more clearly what you are trying to achieve.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Today this process of transferring the registry keys were really performed. It was successfully copied from the source windows server 2008 to the destination server (windows server 2012), run and the window that popped up also shown that the process has successfully completed.
But when tested with the shortcuts in intellisense like "b = browse, d = delete etc." it didn't work.
Instead, command win size changed, dockable to undockable, recent file list changed, intellisense table blanked and what not!

Right now trying to export intellisense table from browse button in the general tab of intellisense manager to the destination server.
There is no system restore facility also in windows server 2012.

Please help ....
 
Seems like you didn't told us what you really want to achieve.

The registry only has some setting, not THE or ALL settings.
You have to move foxuser.dbf, too. And if you didn't really had macros defined, but did intellisense extensions, that's all in foxcode.dbf

In general, if you want to move from one machine to another the best approach is to reinstall and then only need to move a few things. It seems you only copied the home folder. This gives you about 90%, but you know software, you are a developer or aim to be one, install software, don't hack your way in copying an installation thinking it'll be a shortcut. That's just uninformed, not only in relation to foxpro.

Foxpro installs into several places and besides installing VFP als registers some OCXes coming with it. That's too scattered to just move by copying. This an IDE, this is not just a code editor or other tool.

Bye, Olaf.
 
I agree with what Olaf said in the previous post. But the main point to keep in mind is that your custom Intellisense settings ("b = browse, d = delete etc." in your example) are stored in FOXCODE.DBF. You need to move that file from the source to the target in order to copy across your custom Intellisense.

Actually, you need to copy two files: FOXCODE.DBF and FOXCODE.FPT. For the location of those files, look in the _FOXCODE system variable, or check Tools / Options / File Locations / FoxCode Table.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Found the soln.
Intellisense env. - appending from foxcode.dbf and
Macros - from fky

Actually vfp was installed both on source and destinatination server. Just environment needed to be synchronized.

Sorry I was late but got tremendous pleasure and satisfaction to see the same soln. from Mike. Thanks both of you once again.
 
Mine was just like hit and trial but yours is a detailed soln.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top