How to use VB 6.0 to set folder and file permissions?

Posted on 2005-05-13
Last Modified: 2012-08-14
How do I use VB to set folder and file permissions on Windows 2000.
Question by:Tsai
    LVL 26

    Accepted Solution


    Author Comment

    Thank you very much. It works great.

    Author Comment

    I gave you grade B because iIt would be even better if you have showed me the VB code of how to use this tool. Anyways, I found the way to implemet it in VB. Thanx for the site.
    LVL 26

    Expert Comment

    You should ask before you grade it. Anyways

    Shell Environ("comspec") & " /c xcacls " & Chr(34) & "c:\temp" & Chr$(34) & " /T /Y /P everyone:F", vbHide + vbMinimizedNoFocus

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
    When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now