RosettaCodeData/Task/Make-directory-path/FreeBASIC/make-directory-path.basic

18 lines
396 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
#ifdef __FB_WIN32__
Dim pathname As String = "Ring\docs"
#else
Dim pathname As String = "Ring/docs"
#endif
Dim As String mkpathname = "mkdir " & pathname
Dim result As Long = Shell (mkpathname)
If result = 0 Then
Print "Created the directory..."
Chdir(pathname)
Print Curdir
Else
Print "error: unable to create folder " & pathname & " in the current path."
End If
Sleep