Jump to content

FileGetAttrib


aharown
 Share

Recommended Posts

  • Moderators

http://www.autoitscript.com/forum/index.ph...st&p=308228

And...

FILE_ATTRIBUTE_ARCHIVE A file or directory that is an archive file or directory.

Applications use this attribute to mark files for backup or removal.

FILE_ATTRIBUTE_COMPRESSED A file or directory that is compressed.

For a file, all of the data in the file is compressed.

For a directory, compression is the default for newly created files and subdirectories.

FILE_ATTRIBUTE_DEVICE Reserved; do not use.

FILE_ATTRIBUTE_DIRECTORY The handle that identifies a directory.

FILE_ATTRIBUTE_ENCRYPTED A file or directory that is encrypted.

For a file, all data streams in the file are encrypted.

For a directory, encryption is the default for newly created files and subdirectories.

FILE_ATTRIBUTE_HIDDEN The file or directory is hidden. It is not included in an ordinary directory listing.

FILE_ATTRIBUTE_NORMAL A file or directory that does not have other attributes set.

This attribute is valid only when used alone.

FILE_ATTRIBUTE_NOT_CONTENT_INDEXED The file is not to be indexed by the content indexing service.

FILE_ATTRIBUTE_OFFLINE The data of a file is not available immediately.

This attribute indicates that the file data is physically moved to offline storage. This attribute is used by Remote Storage, which is the hierarchical storage management software. Applications should not arbitrarily change this attribute.

FILE_ATTRIBUTE_READONLY A file or directory that is read-only.

For a file, applications can read the file, but cannot write to it or delete it.

For a directory, applications cannot delete it.

FILE_ATTRIBUTE_REPARSE_POINT A file or directory that has an associated reparse point.

FILE_ATTRIBUTE_SPARSE_FILE A file that is a sparse file.

FILE_ATTRIBUTE_SYSTEM A file or directory that the operating system uses a part of, or uses exclusively.

FILE_ATTRIBUTE_TEMPORARY A file that is being used for temporary storage.

File systems avoid writing data back to mass storage if sufficient cache memory is available, because typically, an application deletes a temporary file after the handle is closed. In that scenario, the system can entirely avoid writing the data. Otherwise, the data is written after the handle is closed.

FILE_ATTRIBUTE_VIRTUAL A file is a virtual file.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

I think this is what I was looking for... but I don't see anything in the help file on _IsFileReady... is that a user defined function or something like that I haven't figured out yet?

Yeah, I wrote it.

It returns a boolean type... example.

If _IsFileReady($FileToCheck) Then
    MsgBox(16, 'Error', 'You can not do anything with this file at the moment.')
Else
    MsgBox(64, 'Error', 'Go ahead, the file is ready.')
EndIfoÝ÷ Øêâ*.ë-Á©í¶Û§¶)r¢ë¬zØ^~)^jëh×6Do
    Sleep(10)
Until _IsFileReady($FileToCheck)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Yeah, I wrote it.

It returns a boolean type... example.

If _IsFileReady($FileToCheck) Then
    MsgBox(16, 'Error', 'You can not do anything with this file at the moment.')
Else
    MsgBox(64, 'Error', 'Go ahead, the file is ready.')
EndIfoÝ÷ Øêâ*.ë-Á©í¶Û§¶)r¢ë¬zØ^~)^jëh×6Do
    Sleep(10)
Until _IsFileReady($FileToCheck)

OK, thanks!

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
 Share

  • Recently Browsing   0 members

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