Page 2 of 2
Re: Shared Roaming Folder is a Problem
Posted: Tue Jun 10, 2025 9:28 pm
by Randy Walker
spikey wrote: Tue Jun 10, 2025 9:03 pm
Randy Walker wrote: Mon Jun 09, 2025 10:13 pm
Works great!!
THANKS!!!!
You're welcome!
Randy Walker wrote: Mon Jun 09, 2025 10:13 pm
...just seems to break history.
Yes, it will for the same 'read only' problem I mentioned above. /LOCAL will
only work if the files are writeable in the IDE's parent folder. This is not true when the IDE is installed to one of the "Program Files" folders.
You can resolve this by using the /H switch and specifying a unique path for each IDE version history file, for example:
Code: Select all
/H D:\PureBasic\PB_prjct-540\Conf\history.db
This will cause each IDE to create its own new empty history.db file in the Conf folders too. However, be aware that doing so will disconnect ALL the IDE's from the current history database content. It depends how reliant you are on the history content, if this is something you would want to do or not.
All good stuff. Thanks spikey!!
Re: Shared Roaming Folder is a Problem
Posted: Sat Aug 23, 2025 6:58 am
by Randy Walker
AZJIO wrote: Sun Jun 08, 2025 4:38 pm
Code: Select all
C:\PB\PureBasic\PureBasic_x64\PureBasic.exe /P "C:\PB\conf\PureBasic.prefs" /T "C:\PB\conf\Templates.prefs" /A "C:\PB\conf\Tools.prefs" /H "C:\PB\conf\History.db"
I found
my solution to the tools.prefs file. I created new text file on the desktop, renamed it tools.prefs, moved it to my program files\purebasic folder and went into properties for that file to change security to allow all users. Then the IDE was able to write to that file and replace it with my preferred settings
Re: Shared Roaming Folder is a Problem
Posted: Thu Jan 22, 2026 8:10 pm
by Randy Walker
You say use -p and the doc you sent me to says /P but does not seem to work for me. The bat file I'm using to launch the IDE and Windows keeps complaining it cant find...
My unedited bat file looks like this:
Code: Select all
@echo off
:: Your dedicated PureBasic temp folder
SET "TEMP=D:\PBTemp"
SET "TMP=D:\PBTemp"
:: Launch PureBasic (default installation path)
start "" "C:\Program Files\PureBasic546\PureBasic546.exe"
exit
This is the error massage I get:
[Window Title]
C:\Program Files\PureBasic546\PureBasic546.exe -p C:\Users\Owner\AppData\Roaming\PureBasic540\PureBasic.prefs
Windows cannot find 'C:\Program Files\PureBasic546\PureBasic546.exe -p C:\Users\Owner\AppData\Roaming\PureBasic540\PureBasic.prefs'. Make sure you typed the name correctly, and then try again.
tried using both -p and /P but error is same.
Re: [SOLVED] Shared Roaming Folder is a Problem
Posted: Fri Jan 23, 2026 4:41 pm
by #NULL
What I quoted was from my local linux help file. If you are on Windows you have to use /P style switches.
Maybe your are using the START command wrong (I'm not really familiar with it though). Put the additional arguments outside the quotes as extra parameters to START. If that doesn't work, maybe try putting "/P" in quotes too.
Code: Select all
start "" "C:\Program Files\PureBasic546\PureBasic546.exe" /P "C:\Users\Owner\AppData\Roaming\PureBasic540\PureBasic.prefs"
Re: [SOLVED] Shared Roaming Folder is a Problem
Posted: Fri Jan 23, 2026 4:55 pm
by skywalk
/portable should be an option in the native installer.
I have to do this manually for each install to avoid what this thread discusses.
This allows multiple versions and x64 or x86 independent installs without rearranging the registry or kerplunking preferences!
+100 for C:\PBxx\install-here
Re: [SOLVED] Shared Roaming Folder is a Problem
Posted: Fri Jan 23, 2026 6:16 pm
by Randy Walker
#NULL wrote: Fri Jan 23, 2026 4:41 pm
Code: Select all
start "" "C:\Program Files\PureBasic546\PureBasic546.exe" /P "C:\Users\Owner\AppData\Roaming\PureBasic540\PureBasic.prefs"
Hi NULL... You were indeed quite correct!
THANKS NULL!!!!!!