file parameter for editor

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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.
Post Reply