Results 1 to 3 of 3

Thread: DIR command - alpha numeric sorting?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Location
    UK
    Posts
    127

    DIR command - alpha numeric sorting?

    does the dir command always return files in alphabetical order

    if not can you use the old DOS extensions ie. -v -p -s etc ?

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: DIR command - alpha numeric sorting?

    is this something you are trying to do in .NET? or just a general DOS question??

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: DIR command - alpha numeric sorting?

    As klienma suggests, the VB.NET Dir function and the DOS dir command are definitely not the same thing, despite having similar names and behaviours. I'd suggest using the System.IO namespace in VB.NET apps anyway, like IO.Directory.GetFiles for instance.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width