Mail Archives: djgpp/2004/10/15/12:30:25.1
On Fri, 15 Oct 2004 15:51:56 GMT in comp.os.msdos.djgpp,
"one2001boy AT yahoo DOT com" <one2001boy AT yahoo DOT com> wrote:
>Brian Inglis wrote:
>> On Fri, 15 Oct 2004 06:42:10 GMT in comp.os.msdos.djgpp,
>> "one2001boy AT yahoo DOT com" <one2001boy AT yahoo DOT com> wrote:
>>
>> In general, read: http://clio.rice.edu/djgpp/win2k/main.htm
>>
>>
>>>Just noticed several issues about ls.exe. Any help is appreciated.
>>>
>>>For the latest ls.exe under Windows XP, there are three issues.
>>>
>>>1) under a directory with one thousand files,
>>>run command "ls -F" will take 1 minute to start to display the files and
>>>directory. using "ls" has no such long delay. using "dir" has no such a
>>>problem either.
>>
>> ls -F has to do a stat call for each name to find out whether it's a
>> directory, executable, link, or normal file: this may involve two
>> directory lookups per name, and maybe other system calls, before
>> sorting and displaying the information. Try dir /o:n for speed
>> comparison.
>>
>
>with dir /o:n, you won't expect any delays for displaying the files and
>directories. ls -F will display filename and directory till the
>processing of the files are finished. If the directory has 2 or 3
>thousand files, you will feel that you are waiting forever.
I'd expect a proportional slowdown between dir and dir /o:n and ls and
ls -F, but I wouldn't expect such a large delay, unless that directory
is badly fragmented.
>>>2) there is no way to use ls.exe to display files in Windows network path?
>>>
>>>I can use the command
>>> dir \\my_workgroup_machine_name\directory_name
>>>
>>>the following doesn't seem to work.
>>> ls \\\\my_workgroup_machine_name\\directory_name
>>
>>
>> Map it to a drive letter with:
>> net use x: \\my_workgroup_machine_name\directory_name
>> then use the drive letter.
>
>Yes. Mapping the drive will work the trick. Just think if ls can work
>out without mapping drive
Does the NTVDM support NetBEUI/NetBIOS or can you load it?
>>>3) ls xxxx_xx_200409292300.* doesn't work
>>
>>
>> NTVDM does not support long file names. Install NTlfn package before
>> installing DJGPP:
>> ftp://ftp.delorie.com/pub/djgpp/current/v2misc/ntlfn08b.zip
>
>I am not sure why. ls xxxx_xx_200409292300.* will work in some machines.
>without NTlfn package installed.
I wasn't aware LFN was added to XP NTVDM.
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
fake address use address above to reply
- Raw text -