June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
4
Task/Rename-a-file/BaCon/rename-a-file.bacon
Normal file
4
Task/Rename-a-file/BaCon/rename-a-file.bacon
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
RENAME "input.txt" TO "output.txt"
|
||||
RENAME "/input.txt" TO "/output.txt"
|
||||
RENAME "docs" TO "mydocs"
|
||||
RENAME "/docs" TO "/mydocs"
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
var fso = new ActiveXObject("Scripting.FileSystemObject");
|
||||
fso.MoveFile('input.txt', 'output.txt');
|
||||
fso.MoveFile('c:/input.txt', 'c:/output.txt');
|
||||
fso.MoveFolder('docs', 'mydocs');
|
||||
fso.MoveFolder('c:/docs', 'c:/mydocs');
|
||||
var fso = new ActiveXObject("Scripting.FileSystemObject")
|
||||
fso.MoveFile("input.txt", "output.txt")
|
||||
fso.MoveFile("c:/input.txt", "c:/output.txt")
|
||||
fso.MoveFolder("docs", "mydocs")
|
||||
fso.MoveFolder("c:/docs", "c:/mydocs")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
Sys.rename "input.txt" "output.txt";;
|
||||
Sys.rename "docs" "mydocs";;
|
||||
Sys.rename "/input.txt" "/output.txt";;
|
||||
Sys.rename "/docs" "/mydocs";;
|
||||
let () =
|
||||
Sys.rename "input.txt" "output.txt";
|
||||
Sys.rename "docs" "mydocs";
|
||||
Sys.rename "/input.txt" "/output.txt";
|
||||
Sys.rename "/docs" "/mydocs";
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
rename('docs','mydocs');
|
||||
rename('docs','mydocs');
|
||||
rename('input.txt','/output.txt');
|
||||
rename('/docs','/mydocs');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue