Sorting text file content with batch script,.
Posted: 10 Sep 2019 03:08
Hi
I have data in filelist.TXT file as below.
"201804170930-ScottsDDSupplier.csv"
"201804180930-ScottsDDSupplier.csv"
"201804211030-ScottsDDSupplier.csv"
i need to sorting in Descending order when i read file as below..
@echo off
setlocal enableExtensions disableDelayedExpansion
set file=D:\filelist.txt
for /f "tokens=1 delims=" %%a in (%file% ) do (
echo %%a
)
so output should be like below ..
"201804211030-ScottsDDSupplier.csv"
"201804180930-ScottsDDSupplier.csv"
"201804170930-ScottsDDSupplier.csv"
how to handle with in batch script , please help
I have data in filelist.TXT file as below.
"201804170930-ScottsDDSupplier.csv"
"201804180930-ScottsDDSupplier.csv"
"201804211030-ScottsDDSupplier.csv"
i need to sorting in Descending order when i read file as below..
@echo off
setlocal enableExtensions disableDelayedExpansion
set file=D:\filelist.txt
for /f "tokens=1 delims=" %%a in (%file% ) do (
echo %%a
)
so output should be like below ..
"201804211030-ScottsDDSupplier.csv"
"201804180930-ScottsDDSupplier.csv"
"201804170930-ScottsDDSupplier.csv"
how to handle with in batch script , please help