BCX Console Demonstration Program s44.bas

DIM A
DIM S$

S$ = COMMAND$(0)

A = EXIST(S$)

IF A THEN
  PRINT S$, " Exists."
ELSE
  PRINT S$, " Does not exist."
END IF

Result:

s44 Does not exist.