Rename in DOS cause Syntax Error on Extensionless File
dos, rename
Solution
This should work
ren C:\folder\file file.txt
you only need the path once
What you also could have done is
move C:\folder\file C:\folder\file.txt
With move, you can specify the path for both
Problem
When I use `ren "C:\folder\file" "C:\folder\file.txt"` Got error "The syntax of the command is incorrect." but if I `CD` to the folder and use `ren "file" "file.txt"` No error and works. My question is, how to rename an extensionless file with path