Thread Locked This thread is locked - replies are not allowed.



Permlink Replies: 1 - Pages: 1 - Last Post: 4 Jul 19, 05:40 Last Post By: JeffTucker Threads: [ Previous | Next ]
ctwist

Posts: 422
Registered: 27-Sep-2003
Fix Windows XP paths in Windows 10
Posted: 1 Jul 19, 17:42
If you migrated jAlbum from XP (a long time ago), you may have some old projects that have bad file paths in the .jap and albumfiles.txt files. You can fix these in jAlbum, but this is time-consuming. This message tells you how to fix the paths for all of your projects in a few minutes.

N.B. If you did not save your project files in XP's "My Documents" folders, or you changed the folder structure in Windows 10, you may need to change some of the paths in the following instructions.

1) Install TextCrawler Free 3.0.3. This replaces text strings in multiple files.

2) Back up your .jap and albumfiles.txt files.

3) If jAlbum is running, close the project.

N.B. Step 4 may not find any matches; this is normal.

4) Replace all instances of "My Pictures" in .jap files.
Open TextCrawler. Set these options:
  • File Filter: *.jap
  • Start Location: C:\Users\username\Documents
  • Find:
    \\Documents and Settings\\username\\My Documents\\My Pictures\\
    
  • Replace:
    \\users\\username\\Pictures\\
    
(refer to the attached screen print)

Click "Find". A list of all matches is shown. Review this list.
Click "Replace". A list of changes is shown.

5) Replace all instances of "My Documents" in .jap files.
Run TextCrawler with these options:
  • File Filter: *.jap
  • Start Location: C:\Users\username\Documents
  • Find:
    \\Documents and Settings\\username\\My Documents\\
    
  • Replace:
    \\users\\username\\Documents\\
    
6) Replace all instances of "My Pictures" in albumfiles.txt.
Run TextCrawler with these options:
  • File Filter: albumfiles.txt
  • Start Location: C:\Users\username\Documents
  • Find: \Documents and Settings\username\My Documents\My Pictures\
  • Replace: \users\username\Pictures\
7) Replace all instances of "My Documents" in albumfiles.txt.
Run TextCrawler with these options:
  • File Filter: albumfiles.txt
  • Start Location: C:\Users\username\Documents
  • Find: \Documents and Settings\username\My Documents\
  • Replace: \users\username\Documents\
8) Open a project that was created in XP. There should be no broken links.

Edited by: ctwist on 03-Jul-2019 18:35
By default, TextCrawler does not change the file's modified date. You can change this behaviour in the options.
Strangely, it does change the created date; there doesn't seem to be a way to disable this.
JeffTucker

Posts: 8,010
Registered: 31-Jan-2006
Re: Fix Windows XP paths in Windows 10
Posted: 1 Jul 19, 18:40   in response to: ctwist in response to: ctwist
The last time I replaced my PC, I was going from Win10 to Win10, but the Windows installer on the new machine stubbornly insisted on basing my username on my email address. Rather than wrestle with it, I simply moved on - after all, who cares? But it did mean that a lot of paths in my jAlbum files needed correcting. This tool would have made short work of that, as well.

Find:
\\Users\\oldusername\\
Replace:
\\Users\\newusername\\
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums