CACLS command in C#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ahmad rasheed
    New Member
    • Sep 2011
    • 1

    CACLS command in C#

    Hello professionals.. .
    can any one guide me to write a program which mimic CACLS command , or how to call any windows tool such as shutdown command using C# program. any info will be appreciated.
  • Subin Ninan
    New Member
    • Sep 2010
    • 91

    #2
    Use DirectorySecuri ty, FileSecurity class to set permission.

    To shutdown system from c#

    Code:
    ProcessStartInfo pinfo = new ProcessStartInfo("shutdown", "-s");
    Process proc = new Process();
    proc.StartInfo = pinfo;
    proc.Start();

    Comment

    Working...