Search found 2 matches
- 11 Jan 2016 10:33
- Forum: DOS Batch Forum
- Topic: Is there a simple way to rename a file to the the same as the folder it is in?
- Replies: 2
- Views: 1922
- 11 Jan 2016 00:56
- Forum: DOS Batch Forum
- Topic: Is there a simple way to rename a file to the the same as the folder it is in?
- Replies: 2
- Views: 1922
Is there a simple way to rename a file to the the same as the folder it is in?
The parent folder of the currently running batch file. EDIT: If i add for %%a in ("%cd%") do ren "*.mkv" "%%~Na.mkv" to my .bat.. when it gets to that step it makes a file with only about halfthefoldername.mkv EDIT: Got it working with for %%a in ("%cd%") do r...