[SOLVED AGAIN] Shared Roaming Folder is a Problem

Just starting out? Need help? Post your questions and find answers here.
Randy Walker
Addict
Addict
Posts: 1203
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

Re: Shared Roaming Folder is a Problem

Post 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!!
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy Walker
Addict
Addict
Posts: 1203
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

Re: Shared Roaming Folder is a Problem

Post 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
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy Walker
Addict
Addict
Posts: 1203
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

Re: Shared Roaming Folder is a Problem

Post by Randy Walker »

#NULL wrote: Sun Jun 08, 2025 4:06 pm
linux help wrote:

Code: Select all

Options for launching the IDE: 
  -p or --preferences <file>    loads/saves all the configuration to/from the given file
Command-line options for the IDE:
https://www.purebasic.com/documentation ... dline.html
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.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
#NULL
Addict
Addict
Posts: 1501
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: [SOLVED] Shared Roaming Folder is a Problem

Post 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"
User avatar
skywalk
Addict
Addict
Posts: 4287
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: [SOLVED] Shared Roaming Folder is a Problem

Post 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
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Randy Walker
Addict
Addict
Posts: 1203
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

Re: [SOLVED] Shared Roaming Folder is a Problem

Post 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!!!!!!
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Post Reply