Rename a file: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 1,281: | Line 1,281: | ||
rename, "docs", "mydocs"; |
rename, "docs", "mydocs"; |
||
rename, "/docs", "/mydocs";</lang> |
rename, "/docs", "/mydocs";</lang> |
||
=={{header|Yabasic}}== |
|||
<lang Yabasic>if peek$("os") = "windows" then |
|||
slash$ = "\\" : com$ = "ren " |
|||
else |
|||
slash$ = "/" : com$ = "mv " |
|||
end if |
|||
system(com$ + "input.txt output.txt") |
|||
system(com$ + "docs mydocs") |
|||
system(com$ + slash$ + "input.txt " + slash$ + "output.txt") |
|||
system(com$ + slash$ + "docs " + slash$ + "mydocs")</lang> |
|||
=={{header|zkl}}== |
=={{header|zkl}}== |