1. Does the 'v' in D_ATTRIBUTES ever occur?
G'day you lot!
What am I doing wrong here?
---------------
include file.e
object dirInfo
sequence fileInfo
for disk = 'C' to 'Z' do
dirInfo = dir( disk & ":\\" )
if not atom( dirInfo ) then
for dirItem = 1 to length( dirInfo ) do
fileInfo = dirInfo[ dirItem ]
if find( 'v', fileInfo[ D_ATTRIBUTES ] ) then
printf( 1, "%s: %s\n", { disk, fileInfo[ D_NAME ] } )
end if
end for
end if
end for
---------------
If I read the documentation correctly, there should be a file with a 'v'
attribute somewhere in the list of files returned by dir(). So far all I get is
a big nothing.
Ideas anyone?
Bruce.
2. Re: Does the 'v' in D_ATTRIBUTES ever occur?
> If I read the documentation correctly, there should be a file with a 'v'
> attribute somewhere in the list of files returned by dir(). So far all I get
> is
> a big nothing.
Well, dir and current_dir are a bit strange. I suspect most of it is handled by
dos-interrupts and depends on which version of
dos (or dos-shell) is running.
For example, I often if not always have current-directory-issues, where my
programs crash with the error message "current
directory is not available" ...
... I for one have assumed that it was due to windhoos-prerelease 98 sr 1 ...
which is btw now claiming it expires on June 1st
and will not work afterwards.
Any one know how to fix that other than uninstalling the SR ? (a very scary
idea)
Ralf N.