Rename a file: Difference between revisions

no edit summary
No edit summary
Line 1,281:
rename, "docs", "mydocs";
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}}==
672

edits