Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsWindows Help

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 July 18th, 2008, 12:17 PM
johnhangey johnhangey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2005
Posts: 110 johnhangey User rank is Corporal (100 - 500 Reputation Level)johnhangey User rank is Corporal (100 - 500 Reputation Level)johnhangey User rank is Corporal (100 - 500 Reputation Level)johnhangey User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 20 h 2 m 5 sec
Reputation Power: 5
Bat file with exceptions

I am not too sure where to make this post but this forum looks good!!

Basically what I need to do is to create a batch file that will delete all files and folders except for certain files and folders.

This can be done for the files by either specifying the file extension or in worst case file name (not as preferable cause i have like hundreds of files im working with here)

Can this be done for a simple batch file without specifying EXACTLY what files and folders to delete?

Reply With Quote
  #2  
Old July 21st, 2008, 11:25 PM
willshire willshire is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 120 willshire User rank is Lance Corporal (50 - 100 Reputation Level)willshire User rank is Lance Corporal (50 - 100 Reputation Level)willshire User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 18 h 27 m 48 sec
Reputation Power: 2
Maybe I have an evil mind, but I don't see any good intent with creating this batch file.

And are you talking all files on C drive? And what files / directories and you wanting to exclude? Some files will not be deleted because they are in use.

-PS if you are using this for evil purposes, please have a moderator close this thread, and your going in the wrong direction

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > Bat file with exceptions


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 4 hosted by Hostway
Stay green...Green IT