prog$=""
filename$="case.txt"
if file exist(filename$)=1 then delete file filename$
open to write 1,filename$
write string 1, "You ran NOTEPAD!"
close file 1
directory$=""
commandline$=filename$
print "What program would you like to run?"
input prog$
select prog$=""
case 0 :
if prog$= "Notepad" EXECUTE FILE "C:\WINDOWS\NOTEPAD.EXE" ,commandline$,directory$,1
endcase
case default : "you've entered something wrong!" endcase
endselect
As you can see, I'm trying to make a small program that writes a file, writes text to file. I put a select case in this program. i go to run it and it says:
if prog$= "Notepad" EXECUTE FILE "C:\WINDOWS\NOTEPAD.EXE" ,commandline$,directory$,1
Unrecognised paramater. anyway to fix this so i can add multiple select cases? thanks in advance for the help
"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack