|
| Anonymous Unregistered | Anonymous Unregistered | 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. | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | just make a batchfile lol... del *.txt heh | | | | Joined: Mar 2002 Posts: 1,273 DollarDNS Owner | DollarDNS Owner Joined: Mar 2002 Posts: 1,273 | psh, don't listen to Gizmo. Just use the "kill" command.
kill "C:\Windows\Desktop\Example.txt" | | | | Anonymous Unregistered | Anonymous Unregistered | Kill command works...not for font files though...cuz it has a file access error. | | | | Joined: Mar 2002 Posts: 1,273 DollarDNS Owner | DollarDNS Owner Joined: Mar 2002 Posts: 1,273 | heh, it won't work if the file is in use by another process. | | | | Anonymous Unregistered | Anonymous Unregistered | Any way to get these font files deleted??? | | | | Joined: Mar 2002 Posts: 1,273 DollarDNS Owner | DollarDNS Owner Joined: Mar 2002 Posts: 1,273 | 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. | | | | Anonymous Unregistered | Anonymous Unregistered | 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. | | |
Posts: 35 Joined: August 2003
| | Forums41 Topics33,840 Posts68,858 Average Daily Posts0 | Members2,176 Most Online3,253 Jan 13th, 2020 | | | | | | | | | | | Doom 3 by Cyrez - 09/11/14 08:58 PM
| | | | | | | | | | | | | | | | | | |
|