Cannot delete "netmeeting" folder

Trying to delete the netmeeting folder in
Program Files with a batch script...

-------------------------------------------------------------
MD "%SYSTEMDRIVE%\RESTORE\Program Files"
CD /D "%SYSTEMDRIVE%\RESTORE\Program Files"
MOVE /Y "%PROGRAMFILES%\netmeeting"
-------------------------------------------------------------

First it said it is "being used by another process" which I
Googled and found it was because of Windows File Protection.

I disabled Windows File Protection and now get a different error "access is denied".

I can manually delete the netmeeting folder, but thats no good, it must be scripted!

Any switches I am missing? The MOVE command seems to not really have any
switches apart from /Y.

No suggestions of third party programs please!
LVL 3
EE33Asked:
Who is Participating?
 
Dark720Connect With a Mentor Commented:
Administrator account will need a password for this to work.
If you do not want to give administrator a password then create a new account with amin rights and password.

Or give whatever user you choose to run the script read and write access to %SYSTEMDRIVE%\RESTORE\ and %PROGRAMFILES%\

0
 
Dark720Commented:

If your script is being run from scheduled tasks then give it Administrator rights.
0
 
EE33Author Commented:
I actually dropped this and never tried what you said
because, well I just quit with it and im working on
other things but since you took the time to answer
and you are the only person who has answered,
theres no harm done in accepting this as the answer.
0
 
Dark720Commented:
Thanks EE33.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.