RosettaCodeData/Task/Rename-a-file/Liberty-BASIC/rename-a-file.basic
2023-07-01 13:44:08 -04:00

10 lines
234 B
Text

' LB has inbuilt 'name' command, but can also run batch files
nomainwin
name "input.txt" as "output.txt"
run "cmd.exe /c ren docs mydocs", HIDE
name "C:\input.txt" as "C:\output.txt"
run "cmd.exe /c ren C:\docs mydocs", HIDE
end