Rename a file: Difference between revisions

no edit summary
No edit summary
Line 608:
os.rename( "docs", "mydocs" )
os.rename( "/docs", "/mydocs" )</lang>
 
=={{header|M2000 Interpreter}}==
To delete a file we have to use Dos shell,so this can be done using Dos command
<lang M2000 Interpreter>
Module checkit {
Document A$={Alfa, beta}
Save.Doc A$, "this.aaa"
Print Exist("this.aaa")=true
dos "cd "+quote$(dir$)+" && del this.bbb", 100; ' using; to close dos window, and 100ms for waiting
Name this.aaa as this.bbb
Rem : Name "this.aaa" as "this.bbb" ' we can use strings or variables
Print Exist("this.bbb")=true
}
checkit
</lang>
 
=={{header|Maple}}==
Anonymous user