UGN Security

Deleting

Posted By: Anonymous

Deleting - 06/16/02 05:51 AM

I was wondering what the code was to delete files. Like, this one project i'm working on, I want it to delete fiels on load. The files are the texts in C:\Windows\Fonts. Delete the files all at the same time.
Posted By: Gremelin

Re: Deleting - 06/16/02 09:11 PM

just make a batchfile lol... del *.txt heh
Posted By: SilentRage

Re: Deleting - 06/17/02 12:16 PM

psh, don't listen to Gizmo. Just use the "kill" command.

kill "C:\Windows\Desktop\Example.txt"
Posted By: Anonymous

Re: Deleting - 06/18/02 05:17 AM

Kill command works...not for font files though...cuz it has a file access error.
Posted By: SilentRage

Re: Deleting - 06/18/02 12:34 PM

heh, it won't work if the file is in use by another process.
Posted By: Anonymous

Re: Deleting - 06/18/02 03:47 PM

Any way to get these font files deleted???
Posted By: SilentRage

Re: Deleting - 06/18/02 08:31 PM

Sure. The proper way to manage your fonts is via the "Fonts" icon in your control panel. You can do this from code too - but I'm starting to think you were just trying to do it from code cause you couldn't do it manually.
Posted By: Anonymous

Re: Deleting - 06/18/02 08:51 PM

No I just wanted to do it thru codes to pretty much learn. And [censored] with my friends. Like send them a VB prog that on load it deltes like the common font Times New Roman or Arial.
© 2017 UGN Security Forum