Jump to content




[Closed] Access Denied to delete a program I made!?


  • You cannot reply to this topic
9 replies to this topic

#1 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 24 March 2013 - 12:56 PM

I'm coding an auto-updater for my CCScreensaver. The problem is, I can't delete it. No matter what I do! fs.delete, rm, delete... I need to be able to delete the file inside of CC for the auto-updater to work! It just errors with Access denied.It's MY program! Y I NO HAVE ACCESS?!

#2 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 24 March 2013 - 01:00 PM

Are you using CC-Emu?

#3 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 24 March 2013 - 01:00 PM

View PostSuicidalSTDz, on 24 March 2013 - 01:00 PM, said:

Are you using CC-Emu?
Nope! Minecraft.

#4 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 24 March 2013 - 01:03 PM

Odd.. I have no idea. Restart the computer maybe?

#5 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 24 March 2013 - 01:08 PM

View PostSuicidalSTDz, on 24 March 2013 - 01:03 PM, said:

Odd.. I have no idea. Restart the computer maybe?
I've restarted Minecraft completely a couple of times, nothing.

#6 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 24 March 2013 - 01:13 PM

That is odd...

#7 FuuuAInfiniteLoop(F.A.I.L)

  • Banned
  • 435 posts
  • LocationThe left part of this post

Posted 24 March 2013 - 01:14 PM

View PostShnupbups100, on 24 March 2013 - 01:08 PM, said:

View PostSuicidalSTDz, on 24 March 2013 - 01:03 PM, said:

Odd.. I have no idea. Restart the computer maybe?
I've restarted Minecraft completely a couple of times, nothing.
restart the computer and try again(the cc computer :unsure: )
and if that dont works then
delete the file from the minecraft folder(Windows: %appdata%/.minecraft/saves/[yourworld]/computer/[your computer id])

#8 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 24 March 2013 - 01:14 PM

Do you have something that opens the file?
--Like Startup file
file = fs.open(yourFileName,"w")

--[[
You have maybe forgotten
to close the file?
Here it would be file.close() for example..
]]--
 
Then if you try to delete it it will say access denied.. Otherwise I don't know how you are getting the error..

#9 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 24 March 2013 - 01:30 PM

I do not know why this happened, but it randomly decided to work. Please close this topic.

#10 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 24 March 2013 - 10:23 PM

You probably forgot to close it when using fs.open :P

I don't understand why people save the contents from the web into a new file. Why not just save it into a variable and if it's a new version or whatnot, open the file of your program and write the new contents in...





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users