
I need the following batch file code modified so the original file is copied and renamed to "copy-original.txt" before modifying the original.
The batch file sorts out text file contents alphabetically , a at top , z at bottom.
The way it is now it leaves the original untouched and unnamed and makes a sorted alphabetically copy of original and is renamed.
@echo off
sort original.txt /o modified-original.txt
echo: FILE HAS BEEN SORTED ALPHABETICALLY TO AN OUTPUT FILE
echo: THE ORIGINAL HAS BEEN LEFT ALONE
pause
Thanks!
I appreciate your help.
Val