Jump to content

Filename sorting in command line


sleepnmojo

Recommended Posts

I'm trying to sort a group of files using DIR, but when I come to files like file1, file2, file10, it sorts them like file1, file10, file2. Explorer in XP does it the way I want, and was wondering if anyone else could think of a way to do it.

Link to comment
Share on other sites


If your files have the same number of characters, it should work. File01,file02... file10. You have to add 0 when needed. If you can't rename the files, you'll have to make a script to do it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...