Thanks so much this one works perfect, can i ask you 1- can i add this to any program i make, it will not effect the program it self, i mean for example this's antivirus program and when it remove viruses it need permistion to remove files in system so with this code it will not effect program permistions ? 2- where i can update this code for upcoming windows? or what this code name so i can search for it Sorry i'm not good with codes i just try to edit some to do what help me in my work