small basic "file.deletedirectory" isn't working

Status
Not open for further replies.
Yeah, it's a permissions issue.

Which leads me to ask two questions:

How can I ask for elevated permissions here? Can I do so at all? (Without right clicking run as admin, of course, I want this program to be as easy as possible)

Also, I need to be able to kill the process of the program to be deleted and keep it dead so windows will allow me to delete the files. Or, is there a way I can override that and delete it anyway?

Since some of you don't seem to know what SB is I included the URL: here. yes, I'm a beginner :scared:

Also, if this is truly based off of VB would it be easy for me to import it into VB and then ask for permissions/kill process there? Or is there an easier way?

Edit: stupid phone puts a space in between smallbasic.com

Edit 2: I HATE the KitKat keyboard.
 

William Munny

Ars Scholae Palatinae
1,409
Don't worry about being a beginner - we all were at some point (in my case, 1983).

Some questions:

1. What are these files/folders that your program is trying to delete?
2. Are they created by it or by another of your programs?
3. Why are these files/folders in "Program Files" in the first place?
4. Why not use a folder inside the user's profile (somewhere inside %APPDATA%) or inside the temporary files folder?

I can't help but think that the only circumstance in which files and folders should be deleted from inside "Program Files" is if you're uninstalling something: not during normal program operations. And killing other processes sounds a bit icky as well.
 
Status
Not open for further replies.