Opening file with double click

BlitzPlus Forums/BlitzPlus Programming/Opening file with double click

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.

You want the CommandLine$() function.

This will return the path+filename of the file opened.


Example

BlitzPlus program
Notify CommandLine$()
End


Saved as TEST.EXE


File assocated with TEST.EXE

myfile.tst

Saved in C:\TEMP

Double-Clicking myfile.tst would cause the example TEST.EXE to produce:

C:\TEMP\myfile.tst