Re: The DIR function by Tim
Tim
Mon Sep 13 14:33:11 CDT 2004
Using DOS, to get the file names (only files) in sorted order is "DIR
/a-d /b /on *.*>somefilename.txt", and then read the file. I was hopeing to
use the internal DIR function of VB. I think I may be out of luck here.
Thanks to those who responded.
--
Tim
"Gabriel" <gsouth@hotmail.com> wrote in message
news:uQlhQpamEHA.2372@TK2MSFTNGP10.phx.gbl...
> Shell "%COMSPEC% /C DIR *.* /B /BN >c:\output.txt"
>
>
>
> "Tim Munro" <Excelsiot@Liamtoh.moc> escreveu na mensagem
> news:%23Xplr9ZmEHA.2180@TK2MSFTNGP12.phx.gbl...
>> Hi all,
>>
>> Is there any way to have the DIR function in Visual Basic 6, return
>> the file list in Sorted Order? I could do it internally, but about twice
>> a year I could have upwards of 5000 files to sort.
>>
>> --
>> Tim
>>
>
>