Change of location for the project file - Forum

Forum Navigation
You need to log in to create posts and topics.

Change of location for the project file

Hello, very glad to see a future for NeoBook. :)

I haven't used it for several years, so downloaded the trial of VisualNEO Win and tried to load an old project.

The projects are stored on a new drive/folder now, so many of the items aren't found. (sample message below)

Is there a way to assign a new base folder for the project? I know I could go through each item one by one and reassign its location, but some of these have a lot of pages so it would take considerable time to do that.

The following files used by this publication could not be found:

Page: Master Page
C:\Users\VWeb\Documents\StudyGuides\Forgiveness\mainmenu.rtf

etc..

Hello

I do not exactly understand your question.
At first I would say no it's not possible.
But you might be able to save your project to the place where resources are now...

Feli

The Book > Archive / Backup feature copies all the files used by your project into one folder

luishp has reacted to this post.
luishp

There is a very simple solution for this problem:

Open the .pub source file with a plain text editor or code editor (as Notepad++).
Use the search and replace functionality to search for the old path and replace with the new one.
Save and open the .pub into VisualNEO Win.

Be carefull and keep a copy of the original file.

Regards.

vwatson has reacted to this post.
vwatson
Quote from luishp on January 4, 2019, 2:54 pm

Open the .pub source file with a plain text editor or code editor (as Notepad++).
Use the search and replace functionality to search for the old path and replace with the new one.

Thank you. That was very easy. :)

luishp has reacted to this post.
luishp

Sorry to resurrect an old topic, but I came across this again.

Is there any way to specify a default path for resources in the IDE like the [PubDir] for compiled apps?

I work on two different computers and use a D drive on my desktop. The search and replace works, but obviously a little inconvenient.

Does VisualNeo Web use this same approach?

xcger has reacted to this post.
xcger

Is there any way to specify a default path for resources in the IDE like the [PubDir] for compiled apps?

Not sure if I understand your question but VisualNEO Win stores in the registry the latest used path.

Does VisualNeo Web use this same approach?

Do you mean if VisualNEO Web store the information within the .neoapp file in the same way as VisualNEO Win does?
If so, yes, .neoapp files are XML files you can edit in any plain text or code editor.
In fact I'm planning to use this feature in the future to design automatic Apps and components generators.

I'd just like a way to move a project from one drive or folder to another without having to edit the pub file to change the file path for each image.

Some software copies the resources into a folder in the project folder. Other software I've used, when it realizes it can't find a resource, offers a way to navigate to the location of the orphaned resources.

For the time being, the easiest way would be to use the same drive on both my computers, I guess. :)

@vwatson

In order for the project to open on any computer in the same way as on yours, you need to save it through the Book > Archive menu, as @fkapnist correctly noted above.

In this case, all absolute file paths will be replaced with relative ones.

luishp has reacted to this post.
luishp

Ah, thanks. Sorry I missed that.

Ask questions whenever they are!

A forum exists to help each other :)

luishp, mazzu001 and vwatson have reacted to this post.
luishpmazzu001vwatson