It is very possible to call notepad in DarkBasic. Try this code here:
`store the current directory
cdir$ = get dir$()
`create file to let notepad read
filename$ = "data001.dat"
if file exist(filename$) > 0 then delete file filename$
open to write 1,filename$
write string 1,"hello there!"
write string 1,"What do you think of this program?"
write string 1,"Just by using the command 'execute file',"
write string 1,"we can call any program in windows!"
close file 1
`<<< This is for calling notepad >>>
execute file windir$() + "\notepad.exe",filename$,cdir$,1
`delete the file that we used for reading in notepad
delete file filename$
print "And this is back in DarkBasic..."
suspend for key
end
Using the "execute file" command, we can execute any exe in windows.
Immunity and Annihalation makes Immunihalation...