Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Batch command for Deleting folder  (Read 3193 times)

0 Members and 1 Guest are viewing this topic.

Abdul Samad

    Topic Starter


    Starter

    • Experience: Experienced
    • OS: Windows 7
    Batch command for Deleting folder
    « on: February 10, 2016, 10:45:06 AM »
    PLz help me with command to delete folder with bat command that is inside C:Program files
    The folder name is Unity is its path is "C:\Program Files\Unity"
    I have already tried the following command but its not working............
    rd /s /q "C:\Program Files\Unity"

    Squashman



      Specialist
    • Thanked: 134
    • Experience: Experienced
    • OS: Other
    Re: Batch command for Deleting folder
    « Reply #1 on: February 10, 2016, 01:03:27 PM »
    Because you need to execute that command in that directory with elevated privileges.  Meaning you have to right click CMD.exe and chose Run as Administrator.

    Abdul Samad

      Topic Starter


      Starter

      • Experience: Experienced
      • OS: Windows 7
      Re: Batch command for Deleting folder
      « Reply #2 on: February 19, 2016, 10:22:20 AM »
      Thanks