Command line switches to execute PB without opened project

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Command line switches to execute PB without opened project

Post 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.
A+
Denis
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Re: Command line switches to execute PB without opened proje

Post by Mistrel »

Are you asking for a a switch in addition to the IDE preference which already exists?
ccode
User
User
Posts: 99
Joined: Sat Jun 23, 2018 5:21 pm

Re: Command line switches to execute PB without opened proje

Post 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)
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: Command line switches to execute PB without opened proje

Post 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
A+
Denis
#NULL
Addict
Addict
Posts: 1440
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Re: Command line switches to execute PB without opened proje

Post 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.
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: Command line switches to execute PB without opened proje

Post 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
A+
Denis
Post Reply