Jump to content

Shehek Baloch

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by Shehek Baloch

  1.  

    This script removes any locked directory, run as Administrator with script.cmd "dir to delete".

    @echo off

    takeown /F %1 /R

    icacls %1 /T /Q /grant "%UserName%":f

    del /f/s/q %1 > nul

    rmdir /s/q %1

     

    howto delete just one special folder?

     

     

    the script is written to delete specific folder

    just put the name of 'folder to be deleted' in the "dir to delete" area                 

×
×
  • Create New...