RosettaCodeData/Task/Make-directory-path/Run-BASIC/make-directory-path.basic

11 lines
270 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
files #f, "c:\myDocs" ' check for directory
if #f hasanswer() then
if #f isDir() then ' is it a file or a directory
print "A directory exist"
else
print "A file exist"
end if
else
shell$("mkdir c:\myDocs" ' if not exist make a directory
end if