Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2006
    Posts
    209

    Grin how to run DOS command with

    hi gusy
    here i have another problem i m trying to run cacls command but can not figure out what to try next, can you guys point me to the right direction please.

    Code:
    CACLS E:\temp /E /G "Power Users":F

  2. #2
    Join Date
    Oct 2006
    Posts
    209

    here is answer but with another problem

    i think i can answer my question now
    Code:
    File.Run("cacls.exe", "e:\\temp /E /G Users:F", "", SW_SHOWNORMAL, false);
    but there is one more problem after this
    Code:
    File.Run("cacls.exe", "E:\\temp /E /G "Power Users":F", "", SW_SHOWNORMAL, false);
    wat if i have to add ""

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    then you need escape the quotes with a backslash

    Code:
    File.Run( "cacls.exe", "E:\\temp /E /G \"Power Users\":F", "", SW_SHOWNORMAL, false);
    output enhanced with AMS Code Pretty
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Oct 2006
    Posts
    209

    Smile thanx

    thanx RizlaUK,
    it is working the way it should be.
    thanx

  5. #5
    Join Date
    May 2006
    Posts
    5,380
    no problem
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. Run Once a day ONLY Problem
    By morci in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 03-04-2004, 06:53 PM
  2. Why can't I run a "Dos box" minimized
    By tomarppe in forum Visual Patch 1.0
    Replies: 1
    Last Post: 01-23-2003, 09:46 AM
  3. HOWTO: Limit the Number of Times an Install can be Run
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-17-2002, 02:58 PM
  4. HOWTO: Make a Program Run Every Time the System Starts
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-01-2002, 09:44 AM
  5. Could AMS Autorun.exe Also Run In DOS?
    By Netwaves in forum AutoPlay Menu Studio 3.0
    Replies: 1
    Last Post: 04-26-2000, 07:50 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