Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 22nd, 2004, 03:26 AM
VietBoyVS VietBoyVS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 73 VietBoyVS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
delete files

I think I have created a BATCH file before.

But now I forgot how to do it and i don't have the codes with me since my pc was formatted..

I just want to delete all files in my IE Tmp file..
I know the commands something like this.. but it prompt it..
any idea?? use -r or any other variables


del "c:\windows\temp\temporary internet files\*"

I should use a notepad and save it as .bat I think. rite?

Reply With Quote
  #2  
Old January 22nd, 2004, 06:33 PM
robertadams robertadams is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 79 robertadams User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
I think you should use this:
del c:\windows\tempor~1\*.*

you cant use the windows folder name because it is too long and has spaces. You have to use th dos name which is tempor~1
yes, do it in notepad and save as whatever.bat then run it whenever you want
you can do the same thing from within windows using the disk clean up utility or manually by selecting all the files and deleting them.

luck,
robert


robert

Reply With Quote
  #3  
Old January 22nd, 2004, 10:01 PM
VietBoyVS VietBoyVS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 73 VietBoyVS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Quote:
del "C:\Documents and Settings\Admin\Cookies\*.txt" /Q /F
del "C:\Documents and Settings\Admin\Local Settings\Temporary Internet Files\*.*" /Q /F /A H
del "C:\Documents and Settings\Admin\Local Settings\Temp\*.*" /Q /F
del "C:\Documents and Settings\Admin\Local Settings\History\*.*" /Q /F
del "C:\WINDOWS\Temp\Temporary Internet Files\Content.IE5\*.*" /Q /F


Okie. I came with up that. The only thing is that all files in Cookies are deleted. but not other files in other folder. other folder are hidens.. any idea how?

Reply With Quote
  #4  
Old January 24th, 2004, 07:49 PM
VietBoyVS VietBoyVS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 73 VietBoyVS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
how do I make this to auto start when I restart(shutdown) or startup my pc?

i think there is something to do with ==> @

Reply With Quote
  #5  
Old January 26th, 2004, 05:39 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
The easiest way to make it start with Windows would be to add a shortcut to it in Programs->Startup

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > delete files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT