Page 1 of 1

Posted: Tue Aug 27, 2002 11:06 pm
by BackupUser
Restored from previous forum. Originally posted by Franco.

I was really surprised that I was not able to run:

purebasic.exe myfile.pb

on the command line.
This is really strange, every editor that I know is able to do that...

I like to start the editor with an opened file with "RunProgram".

Fred, can you add this please :)

Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.

Posted: Wed Aug 28, 2002 5:02 am
by BackupUser
Restored from previous forum. Originally posted by Danilo.

You have to write both in quotes (chr(34)) at
commandline:

Code: Select all

c:\whatever\> "purebasic.exe" "mouse.pb"
For RunProgram it looks like only the argument
needs to be in quotes:

Code: Select all

RunProgram("purebasic.exe"),Chr(34)+"mouse.pb"+Chr(34),0)
RunProgram(Chr(34)+"purebasic.exe"+Chr(34),Chr(34)+"mouse.pb"+Chr(34),0)
Works fine here...

cya,
...Danilo

(registered PureBasic user)

Posted: Wed Aug 28, 2002 6:21 pm
by BackupUser
Restored from previous forum. Originally posted by Franco.

Thanks Danilo for the workaround, it works with quotes.

But really:
The 'PureBasic Editor' is the FIRST program where I have to use quotes on the command line - this is NOT THE NORMAL WAY.

Have a nice day...
Franco

Sometimes you have to go a lonely way to accomplish genius things.