Code: Select all
if shell("if exist settings.txt ...) ... then
dothis
andthis
end if
Code: Select all
if shell("if exist settings.txt ...) ... then
dothis
andthis
end if
Code: Select all
If Shell("Echo." + "if exist settings.txt ...") = 0 Then
Print
Print "Ouput by Shell() successful"
End If
Sleep
Code: Select all
VAR fnam = "settings.txt", fnr = FREEFILE
IF 0 = OPEN(fnam FOR INPUT AS fnr) THEN
CLOSE #fnr
?"Do this ..."
?"Do that ..."
END IF