Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328

    Folder Attributes

    Looking for a way to set folder Attributes, any suggestions? A action of Folder.setAttributes would be nice.

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    AFAIK File.SetAttributes works for folders as well.

  3. #3
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    Any special trick to it, I tried it seemed to have no effect, I will

    result = Dialog.FolderBrowse("Folder To Copy", _ProgramFilesFolder.."ReDoc Suite")
    File.SetAttributes(result.."\\Production", {ReadOnly=false, Hidden=true})
    Last edited by Jason Pate; 03-22-2005 at 10:14 AM. Reason: Spelling

  4. #4
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328

    1039--"Could not set file's compressed attribute."

    "Could not set file's compressed attribute."

    1039

    File.SetAttributes(result.."\\Production", {Hidden=true})
    Its setting the Hidden attrib, but errors about compressed attribute??

  5. #5
    Join Date
    Jan 2000
    Posts
    2,002
    I have looked into this a bit. I have confirmed that it does in fact work properly. For me, I do not get the error. Application.GetLastError returns 0. In this case you can probably safely ignore the return value. We will look more into why it happens, however.

  6. #6
    Join Date
    Jan 2002
    Location
    Nashville TN
    Posts
    328
    Thanks, after some testing I think I am getting the result I was looking for, and the error seems to have gone away, if it comes back I will post here and save project file for your review.

Similar Threads

  1. Checking folder attributes, moving folders or stored variables
    By Marker0077 in forum Setup Factory 6.0
    Replies: 4
    Last Post: 06-26-2003, 08:33 AM
  2. HOWTO: Build and Burn Your AutoPlay Application
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 03:43 PM
  3. HOWTO: Create an Empty Folder
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-21-2002, 03:21 PM
  4. INFO: The Explore Button on the Distribution Folder Dialog
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-11-2002, 12:06 PM
  5. HOWTO: Locate Internet Explorer's Favorites Folder
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-11-2002, 09:12 AM

Posting Permissions

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