Page 1 of 1

Command line switches to execute PB without opened project

Posted: Sat Jul 21, 2018 5:49 pm
by Denis
Fred,

is it possible to add a switche to run PB without opening the last project (when PB has been closed) ?

I tryed different ways without succes.
Thank you.

Re: Command line switches to execute PB without opened proje

Posted: Sat Jul 21, 2018 6:16 pm
by Mistrel
Are you asking for a a switch in addition to the IDE preference which already exists?

Re: Command line switches to execute PB without opened proje

Posted: Sat Jul 21, 2018 6:20 pm
by ccode
Before Fred or anyone else answers.
Have you tried because way over the settings already?
(Disabling "Auto-reload-last open sources")

Or use: (Example)
./purebasic -p start.txt
Then edit "start.txt" and start "Purebasic" with this file.
(AutoReload = 0)

Re: Command line switches to execute PB without opened proje

Posted: Sat Jul 21, 2018 7:07 pm
by Denis
Mistrel wrote:Are you asking for a a switch in addition to the IDE preference which already exists?
Hi Mistrel,

yes, but only for project files, not for common files.
What i want it's to avoid changing PB setting.

I don't know if last opened project files will be "lost" at ide opening.
ccode wrote:Before Fred or anyone else answers.
Have you tried because way over the settings already?
(Disabling "Auto-reload-last open sources")

Or use: (Example)
./purebasic -p start.txt
Then edit "start.txt" and start "Purebasic" with this file.
(AutoReload = 0)
Hi ccode,

what i mean it's only for project files.

With the start.txt, did it keeps last opened common files ?
I will try that.

But what i want is to have a switch to avoid changing PB setting "Auto-reload-last open sources".
This is to avoid multiplying files.
Tks

Re: Command line switches to execute PB without opened proje

Posted: Sat Jul 21, 2018 10:42 pm
by #NULL
you can start purebasic with a different prefs file or with the portabe switch. see https://www.purebasic.com/documentation ... dline.html
I guess you want to start pb with some file but not loading previous files for that session but still load previous files on a later session? Maybe just start pb with that file with the portable option and otherwise normally.

Re: Command line switches to execute PB without opened proje

Posted: Sun Jul 22, 2018 4:30 am
by Denis
Yes #NULL,

i use options /P and /A to load différents projects.

I will try /portable but not sure that is really what i want.
Tks