Double click then load my prog

Blitz3D Forums/Blitz3D Beginners Area/Double click then load my prog

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ah right, I understand now, you need to look at the command line parameters for your executable to see if a file has been passed to it.
assuming no other command line options are going to be used, you could do something like:

file$=CommandLine$() 
;REMOVE THE QUOTES
file$= Left(file$,Len(file$)-1)
file$ = Right(file$, Len(file$)-1)

If FileType(file$) = 1 then LoadFile(file$) ;file exists