Batch Script - SORT



This batch command takes the input from a source file and sorts its contents alphabetically, from A to Z or Z to A. It prints the output on the console.

Syntax

Sort [filename]

Where filename is the file whose contents need to be sorted.

Example

@echo off 
Sort C:\tp\lists.txt
batch_script_commands.htm
Advertisements