Script - Backup File Locations
Moderator: Kathy_9
-
- Advisor
- Posts: 6774
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Script - Backup File Locations
Script Name: FileLocations - Backup, FileLocations - Restore
Download Link: https://drive.google.com/file/d/1ParO-W ... sp=sharing
Compatibility: 9 - 2018 (tested in XI, 2018)
Requirements: Place in Scripts-Trusted Folder
These two scripts are meant to backup the file locations inside PSP and then restore them later to the same version. This is not meant to be used to copy file locations across versions. A different script will be made for that purpose. Use this script when you need to reset or reinstall the same version of PSP on the same computer and you want to make sure all File Locations have been backed up.
When you run FileLocations - Backup it'll save the "FileLocations.loc" file to your default workspaces folder. If you're running a 64-bit version of PSP it'll also include a 'FileLocations64.loc" file. DO NOT RESTORE 'FileLocations64.loc' TO A 32-BIT VERSION OF PSP. This is very important, there are some default folder differences between 32-bit and 64-bit PSP. If you restore the 32-bit locations into the 64-bit version of PSP or the 64-bit locations into the 32-bit version of PSP somethings may not work correctly. So be careful.
When you run FileLocations - Restore it'll open a dialog asking you to pick the file. It should hopefully default to the same locationn where the file was saved. But, if it doesn't you should be able to navigate to the file. Select the file, hit open, and it should restore your file locations.
Quick Note: In order to properly restore all file locations and activate the same checkboxes this script accesses your computer's Registry.
Please let me know of any problems you encounter. I have only tested it on my own computer and only in two versions of PSP.
Version History:
V1.0 - Initial Script released
Download Link: https://drive.google.com/file/d/1ParO-W ... sp=sharing
Compatibility: 9 - 2018 (tested in XI, 2018)
Requirements: Place in Scripts-Trusted Folder
These two scripts are meant to backup the file locations inside PSP and then restore them later to the same version. This is not meant to be used to copy file locations across versions. A different script will be made for that purpose. Use this script when you need to reset or reinstall the same version of PSP on the same computer and you want to make sure all File Locations have been backed up.
When you run FileLocations - Backup it'll save the "FileLocations.loc" file to your default workspaces folder. If you're running a 64-bit version of PSP it'll also include a 'FileLocations64.loc" file. DO NOT RESTORE 'FileLocations64.loc' TO A 32-BIT VERSION OF PSP. This is very important, there are some default folder differences between 32-bit and 64-bit PSP. If you restore the 32-bit locations into the 64-bit version of PSP or the 64-bit locations into the 32-bit version of PSP somethings may not work correctly. So be careful.
When you run FileLocations - Restore it'll open a dialog asking you to pick the file. It should hopefully default to the same locationn where the file was saved. But, if it doesn't you should be able to navigate to the file. Select the file, hit open, and it should restore your file locations.
Quick Note: In order to properly restore all file locations and activate the same checkboxes this script accesses your computer's Registry.
Please let me know of any problems you encounter. I have only tested it on my own computer and only in two versions of PSP.
Version History:
V1.0 - Initial Script released
-
- Posts: 1584
- Joined: Fri Oct 29, 2010 6:49 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- ram: 16Gb
- Corel programs: PSP 8 (JASC) to PSP 2023
- Location: Canada
Re: Script - Backup File Locations
Oh, that is going to help users reset their file location when upgrading or applying patches to their PSP??? 

Cassel
https://creationcassel.com/store
Specializing in PSP specific products: scripts and tubes
https://scrapbookcampus.com
for beginner and seasoned scrappers and designers and other PSP users
https://creationcassel.com/store
Specializing in PSP specific products: scripts and tubes
https://scrapbookcampus.com
for beginner and seasoned scrappers and designers and other PSP users
-
- Advisor
- Posts: 6774
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script - Backup File Locations
Patches, yes. Upgrades, no.
This is only meant to be used for backing up and restoring into the same version. This is because I'm doing a full backup and full restore, I'm not adding to the current list. The script you originally gave me could be used, with editing, to copy the locations from an old version into the current one. Working on that. But if you were to restore the result of this script into a new copy of PSP it'll replace all current locations with whatever you import. I don't think that would break PSP, but it could give unexpected results. I haven't tested it.
This is only meant to be used for backing up and restoring into the same version. This is because I'm doing a full backup and full restore, I'm not adding to the current list. The script you originally gave me could be used, with editing, to copy the locations from an old version into the current one. Working on that. But if you were to restore the result of this script into a new copy of PSP it'll replace all current locations with whatever you import. I don't think that would break PSP, but it could give unexpected results. I haven't tested it.
-
- Posts: 10
- Joined: Mon Aug 01, 2022 8:35 am
- System_Drive: E
- 32bit or 64bit: 64 Bit
- motherboard: 0360pv a00
- processor: i5-8250u
- ram: 32GB
- Video Card: noneall
- sound_card: noneall
- Hard_Drive_Capacity: 2TB
- Monitor/Display Make & Model: Intel UHD graphics 620 generic PnP monitor 15.
- Corel programs: PAINTSHOP PRO 2020 AND 2021 X8
Re: Script - Backup File Locations
It did not work for me in PSP2020. THANK YOU!
-
- Site Admin
- Posts: 22412
- Joined: Fri Dec 10, 2004 9:36 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Gigabyte B550M DS3H AC
- processor: AMD Ryzen 9 5900X
- ram: 32 GB DDR4
- Video Card: AMD RX 6600 XT
- Hard_Drive_Capacity: 1 TB SSD + 2 TB HDD
- Monitor/Display Make & Model: Kogan 32" 4K 3840 x 2160
- Corel programs: VS2022; PSP2023; DRAW2021; Painter 2022
- Location: Levin, New Zealand
Re: Script - Backup File Locations
Welcome to the forum. Please note that I have removed your inclusion of your email address. That is to protect you from potential spammers. We have in case got your email address recorded in your registration details. You should already have received an email from us regarding activation of your account.
Ken Berry
-
- Advisor
- Posts: 6774
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script - Backup File Locations
Can you be more explicit about what you mean when you say "it did not work"? Did an error pop-up? Did it fail to make the save file? What exactly didn't work?
-
- Posts: 10
- Joined: Mon Aug 01, 2022 8:35 am
- System_Drive: E
- 32bit or 64bit: 64 Bit
- motherboard: 0360pv a00
- processor: i5-8250u
- ram: 32GB
- Video Card: noneall
- sound_card: noneall
- Hard_Drive_Capacity: 2TB
- Monitor/Display Make & Model: Intel UHD graphics 620 generic PnP monitor 15.
- Corel programs: PAINTSHOP PRO 2020 AND 2021 X8
Re: Script - Backup File Locations
I downloaded files, extracted files, placed files in trusted script file, called up PSP2020 64bit program, selected backup script, ran backup script, nothing happened, ran single step mode, it said will run script now, ran script, nothing happened. checked workspace file, nothing in file. deleted all scripts. Went back downloaded scripts again, reloaded script again and nothing at all happens when I ran backup script!
-
- Advisor
- Posts: 6774
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script - Backup File Locations
It might be because of the version. I've uploaded a new version of the script that should cover all new versions of PSP and also outputs more information to the Script Output Palette including the file path.
-
- Posts: 10
- Joined: Mon Aug 01, 2022 8:35 am
- System_Drive: E
- 32bit or 64bit: 64 Bit
- motherboard: 0360pv a00
- processor: i5-8250u
- ram: 32GB
- Video Card: noneall
- sound_card: noneall
- Hard_Drive_Capacity: 2TB
- Monitor/Display Make & Model: Intel UHD graphics 620 generic PnP monitor 15.
- Corel programs: PAINTSHOP PRO 2020 AND 2021 X8
Re: Script - Backup File Locations
Script Error - Script Everything looks good - ready to go. Fetching locations
Fetching 64 - bit locations if any(in white print)
(now in red) Traceback (most recent call last):
File "<string>". line 51, in DO
UnboundLocalError: local variable 'wpath" referenced before assignment
(in white again) Script 'FileLocations - Backup has completed with an error.
Fetching 64 - bit locations if any(in white print)
(now in red) Traceback (most recent call last):
File "<string>". line 51, in DO
UnboundLocalError: local variable 'wpath" referenced before assignment
(in white again) Script 'FileLocations - Backup has completed with an error.
-
- Posts: 10
- Joined: Mon Aug 01, 2022 8:35 am
- System_Drive: E
- 32bit or 64bit: 64 Bit
- motherboard: 0360pv a00
- processor: i5-8250u
- ram: 32GB
- Video Card: noneall
- sound_card: noneall
- Hard_Drive_Capacity: 2TB
- Monitor/Display Make & Model: Intel UHD graphics 620 generic PnP monitor 15.
- Corel programs: PAINTSHOP PRO 2020 AND 2021 X8
Re: Script - Backup File Locations
Note: There's no file in Workspaces.
-
- Advisor
- Posts: 6774
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script - Backup File Locations
Yeah, no file will show up if it exits with an error, it didn't reach the actual file saving part of the script. I've updated the script to take care of the logic error I introduced and it works for me - re-download and try again.
-
- Advisor
- Posts: 2138
- Joined: Sat Oct 22, 2011 10:50 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: ASUS Computer N751J
- processor: Intel i7_4710 HQ 2_50GHz
- ram: 16GB
- Video Card: NVIDIA GeForce GTX 850M
- sound_card: NVIDIA High Definition Audio
- Hard_Drive_Capacity: 2 Tb
- Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
- Corel programs: PSP X7, X9, 2018 to 2023
- Location: Belgium (French speaking)
Re: Script - Backup File Locations
My testing in PSP 2020 64bit:
Downloaded and installed the new script file (FileLocations - Backup.zip Aug 2nd 2022).
Launched the FileLocations - Backup script.
Worked as expected: the FileLocations64.loc file was found in my workspaces folder.
Closed PSP and did a reset.
In the fresh PSP, in File locations, I added the file locations for the scripts and workspaces.
Launched the FileLocations-Restore script. It asked the file .loc location. I selected it.
All my file locations were restored.
Downloaded and installed the new script file (FileLocations - Backup.zip Aug 2nd 2022).
Launched the FileLocations - Backup script.
Worked as expected: the FileLocations64.loc file was found in my workspaces folder.
Closed PSP and did a reset.
In the fresh PSP, in File locations, I added the file locations for the scripts and workspaces.
Launched the FileLocations-Restore script. It asked the file .loc location. I selected it.
All my file locations were restored.
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
-
- Posts: 10
- Joined: Mon Aug 01, 2022 8:35 am
- System_Drive: E
- 32bit or 64bit: 64 Bit
- motherboard: 0360pv a00
- processor: i5-8250u
- ram: 32GB
- Video Card: noneall
- sound_card: noneall
- Hard_Drive_Capacity: 2TB
- Monitor/Display Make & Model: Intel UHD graphics 620 generic PnP monitor 15.
- Corel programs: PAINTSHOP PRO 2020 AND 2021 X8
Re: Script - Backup File Locations
I've tried backup on PSP2020 32&64bit and PSP2021 32&64bit. Each responded "File Locations Have Been Backed up". In PSP2020 64bit I changed file location on brushes. Ran Restore and it put it back to the way it was. Each file location file I renamed for each program ex. "FileLocation64 PSP2020". All 4 files seem fine! Thank You so much, this is going to be a huge time saver for me. I have Jasc 8 and will try later. I'll let you know how things go. Is it OK to pass this on the a Facebook Group - Paintshop Pro Maniacs? Carole Cassel is Admin.?
-
- Advisor
- Posts: 6774
- Joined: Thu Oct 02, 2008 1:07 pm
- System_Drive: C
- 32bit or 64bit: 64 Bit
- motherboard: Alienware M17xR4
- processor: Intel Core i7-3630QM CPU - 2_40GH
- ram: 6 GB
- Video Card: NVIDIA GeForce GTX 660M
- sound_card: Sound Blaster Recon3Di
- Hard_Drive_Capacity: 500GB
- Corel programs: PSP: 8-2023
- Location: USA
Re: Script - Backup File Locations
Glad to hear it's finally working.
All of my scripts are free to distribute so have fun. Most of my scripts can be found here or on Wordpress - https://levifiction.wordpress.com/
All of my scripts are free to distribute so have fun. Most of my scripts can be found here or on Wordpress - https://levifiction.wordpress.com/
-
- Posts: 10
- Joined: Mon Aug 01, 2022 8:35 am
- System_Drive: E
- 32bit or 64bit: 64 Bit
- motherboard: 0360pv a00
- processor: i5-8250u
- ram: 32GB
- Video Card: noneall
- sound_card: noneall
- Hard_Drive_Capacity: 2TB
- Monitor/Display Make & Model: Intel UHD graphics 620 generic PnP monitor 15.
- Corel programs: PAINTSHOP PRO 2020 AND 2021 X8
Re: Script - Backup File Locations
Just tried on Jasc 32bit PSP 8. Notification came up about earlier version and may have errors. Clicked OK. Modified file location. Ran Restore Same message there my be errors. Clicked OK. When it opened file location, it was in my picture file, redirected to workspace file clicked on filelocations32 PSP8 and it restored files. Worked OK, no errors that I know of. Thanks' Again. STEVEN