Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Delete action, Access Denied.

If you have a question or need help, this is the place to be.
Post Reply
st1x
Posts: 7
Joined: Tue Apr 03, 2012 12:08 pm

Delete action, Access Denied.

Post by st1x »

Hi,

i have a script that deletes files from a folder. it used to work just fine then i get the below error. i'm logged in as the administrator account and have runas administrator. Not sure why it just stopped working? Any help would be appreciated.

Traceback (most recent call last):
Python script "5", line 8, in <module>
shutil.rmtree(os.path.join(root, d))
File "shutil.pyc", line 221, in rmtree
File "shutil.pyc", line 219, in rmtree
WindowsError: [Error 5] Access is denied: 'C:\\video\\mof12.avi'

Version: EventGhost_0.4.1.r1640
Windows Server 2008 R2 SP1
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Delete action, Access Denied.

Post by blaher »

Can you delete that file manually?
st1x
Posts: 7
Joined: Tue Apr 03, 2012 12:08 pm

Re: Delete action, Access Denied.

Post by st1x »

Yes, i can manually delete the file without any issues. Any program moving that file is being runas Administrator.

I've set it up as per this guide:

http://www.totalhtpc.com/automated-medi ... -torrents/
Post Reply