Page 1 of 1

Source Directory for PB4.2 and PB4.3

Posted: Mon Dec 29, 2008 6:16 am
by BillNee
Hi - I copied my programs for PB4.2 to Pb4.3 since I wanted to get them working in both formats. But after putting their location in PB4.3 my "Source Directory" in PB4.2 was changed to the same location. I changed it back in PB4.2 and that changed the "Source Directory" in PB4.3. It seem they both want to use the same source directory. What am I doing wrong?
My programs are in Examples\Sources\Bills within the PB 4.2 and PB4.3 folders. I even tried renaming my program folders to Bills42 and Bills43 but that didn't help. I would like to make the PB4.3 changes (Read, PtInRect_,etc) to my 4.3 programs but not change my 4.2 programs.
Appreciate any help.
Bill Nee

Posted: Mon Dec 29, 2008 8:35 pm
by Arctic Fox
From the PureBasic 4.30 Help File for Windows (Using several PureBasic versions on Windows):
Note: Since PureBasic 4.10, the settings for the IDE are no longer saved in the PureBasic directory but rather in the %APPDATA%\PureBasic directory. To keep the multiple versions from using the same configuration files, the /P /T and /A switches can be used. Furthermore there is the /PORTABLE switch which puts all files back into the PureBasic directory and disabled the creation of the .pb extension.
Though I haven't tried it, you can try using those switches.

Re: Source Directory for PB4.2 and PB4.3

Posted: Mon Dec 29, 2008 8:47 pm
by luis
I use /LOCAL

"puts all preferences in the PureBasic directory instead of the user profile location"

Posted: Tue Dec 30, 2008 2:54 am
by BillNee
Hi - I see where those switches are in the help file. But I have no idea how to use them. Do they go somewhere in the preferences or do I have to start Pure Basic from Dos? This looks exactly like what I am looking for. Appreciate any step by step instructions.
Thanks for the quick information.
Bill Nee

Posted: Tue Dec 30, 2008 12:22 pm
by luis
BillNee wrote:Hi - I see where those switches are in the help file. But I have no idea how to use them. Do they go somewhere in the preferences or do I have to start Pure Basic from Dos?
You can put them in the shortcut you use to launch PB.

For example, in my case i have:

"D:\Programmi\PureBasic\PB4\PureBasic.exe /LOCAL"

Every time you click the shortcut, PB is launched with the above option.

Posted: Tue Dec 30, 2008 5:04 pm
by BillNee
Hi - editing the desktop icon worked perfectly. I'm letting the other version continue to use the info in "ApplicationData".
Thanks to both of you for the help. Really appreciate it.
Bill Nee