Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Lock/Hide folder

Lock/Hide folder

Scheduled Pinned Locked Moved Visual Basic
tutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zenithmaximus
    wrote on last edited by
    #1

    Hi guys, I'm currently working on how to lock or at least hide a certain folder, below are the codes that i'm tryin to use... renameFileName = (InputBox("Folder Name:", "Unlock", "Cycle #")) System.IO.Directory.Move(path & "\.{20D04FE0-3AEA-1069-A2D8-08002B30309D}", path & "\" & renameFileName) thing is, its working on my local folders, but when i used it to a folder on a mapped drive its just renaming it, and i still can access the folder... if you guys got another approach on how to do this... tnx in advance.

    -::maximus::-

    D H 2 Replies Last reply
    0
    • Z zenithmaximus

      Hi guys, I'm currently working on how to lock or at least hide a certain folder, below are the codes that i'm tryin to use... renameFileName = (InputBox("Folder Name:", "Unlock", "Cycle #")) System.IO.Directory.Move(path & "\.{20D04FE0-3AEA-1069-A2D8-08002B30309D}", path & "\" & renameFileName) thing is, its working on my local folders, but when i used it to a folder on a mapped drive its just renaming it, and i still can access the folder... if you guys got another approach on how to do this... tnx in advance.

      -::maximus::-

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      That won't work on network drives. The only way to hide folders on a network is using Access Control Lists and assign the appropriate permissions to users/groups. Exactly how this is done depends on your network O/S.

      Dave Kreskowiak Microsoft MVP - Visual Basic

      1 Reply Last reply
      0
      • Z zenithmaximus

        Hi guys, I'm currently working on how to lock or at least hide a certain folder, below are the codes that i'm tryin to use... renameFileName = (InputBox("Folder Name:", "Unlock", "Cycle #")) System.IO.Directory.Move(path & "\.{20D04FE0-3AEA-1069-A2D8-08002B30309D}", path & "\" & renameFileName) thing is, its working on my local folders, but when i used it to a folder on a mapped drive its just renaming it, and i still can access the folder... if you guys got another approach on how to do this... tnx in advance.

        -::maximus::-

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See How to: Lock and Unlock Folders or Files [^] maybe it is some helpful to you

        _**


        **_

        WhiteSky


        D 1 Reply Last reply
        0
        • H Hamid Taebi

          See How to: Lock and Unlock Folders or Files [^] maybe it is some helpful to you

          _**


          **_

          WhiteSky


          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Uhh, you do realize that link is for the Team Foundation Server Source Control, right? :confused:

          Dave Kreskowiak Microsoft MVP - Visual Basic

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups