Results 1 to 11 of 11

Thread: goust out a folder???

  1. #1

    Thread Starter
    Addicted Member Redangel's Avatar
    Join Date
    Oct 2005
    Location
    England
    Posts
    214

    Smile goust out a folder???

    is it possible to goust out a folder using vb6 ie greyed out so you can see the folder but not access it

    any help much appreshiated

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: goust out a folder???

    u mean "Ghost" it?

    like when its a hidden system folder?
    U can (I think) but only if u have NT/XP Pro where user permissions can be set
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    Addicted Member Redangel's Avatar
    Join Date
    Oct 2005
    Location
    England
    Posts
    214

    Re: goust out a folder???

    yes thats right!!!
    can you point me in the right direction as to how this is done

  4. #4
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: goust out a folder???

    do u have XP Pro or NT Pro?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  5. #5

    Thread Starter
    Addicted Member Redangel's Avatar
    Join Date
    Oct 2005
    Location
    England
    Posts
    214

    Re: goust out a folder???

    xp pro

  6. #6
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: goust out a folder???

    ok.. well ive never done it.. but basically its properties of the folder..
    http://www.microsoft.com/technet/scr..._scr_tspz.mspx

    VB Code:
    1. 'Add reference to the MS Scripting Runtime
    2. Dim FSO As New FileSystemObject
    3. Private Sub Form_Load()
    4.     Dim FLD As Folder
    5.     Set FLD = FSO.GetFolder("C:\VB\apran")
    6.     'Set Hidden
    7.     FLD.Attributes = Hidden
    8.     'Set SYstem
    9.     'FLD.Attributes = System
    10.     'Set etc
    11.     'FLD.Attributes = Archive
    12.     'FLD.Attributes = Directory
    13.     'FLD.Attributes = Normal
    14.     'FLD.Attributes = ReadOnly
    15.    
    16.     'setting to Hidden or System should "Grey it"
    17.    
    18.    
    19. End Sub

    I dont know how to Restrict it... (setting password.. but that a start)
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  7. #7
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: goust out a folder???

    Quote Originally Posted by Redangel
    is it possible to goust out a folder using vb6 ie greyed out so you can see the folder but not access it

    any help much appreshiated
    You can only Ghost a Disk or Partition as far as I know.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  8. #8

  9. #9
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: goust out a folder???

    couldnt you just open cmd.exe and then do attrib +h c:\myfolder which would be so much easier.

  10. #10
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: goust out a folder???

    XP doesn't come with attrib...???
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  11. #11

Posting Permissions

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



Click Here to Expand Forum to Full Width