launching an outside file

BlitzMax Forums/BlitzMax Beginners Area/launching an outside file

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.

Try this
Extern "win32"
Function ShellExecute(hwnd:Int, lpOperation$z,lpFile$z,..
     lpParameters$z,lpDirectory$z, nShowCmd:Int)="ShellExecuteA@24"
End Extern

out:Tstream=WriteStream("c:\result.txt")
WriteLine(out,"hello there")
CloseStream(out)

ShellExecute(0,"open","c:\result.txt","","",3)
see here for how to use ShellExecute.