Good Morning All,  I am hoping to get some help with a Offline KScript to remove a folder in my common files. I have run the script and it says success but the folder is still there.

Here is the script

Verify that the directory C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform exists

Script Name: Remove Folder

@echo off

rmdir /s /q “C:\Program Files\Common Files\Microsoft Shared \OfficeSoftwareProtectionPlatform”


Result

Directory DOES exist: C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform
Launched Process: kace5334.bat

Checking if directory exists: C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform
Launching program: 'C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\229\kace5334.bat' '' wait='false'





4 Comments   [ + ] Show Comments

Comments

  • Rmdir will only remove empty directories - is the directory empty?
  • no it isn't
  • How would I rename that folder then if you could please help with that
  • I think I have finally got it solved. Thank you dunnpy. You pointed me in the right direction.

    If anyone needs this in the future. Here is the bat script I used.

    @echo off

    rename "C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform" "OfficeSoftwareProtectionPlatform_old"
Please log in to comment

There are no answers at this time

Answers

Answer this question or Comment on this question for clarity