Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
17
Task/Make-directory-path/FreeBASIC/make-directory-path.basic
Normal file
17
Task/Make-directory-path/FreeBASIC/make-directory-path.basic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue