|
|
 |
|
01-24-2013, 06:50 AM
|
#26
|
|
Discussion Club Moderator Elite Member
Join Date: May 2012
Posts: 6,318
|
No real way to judge until we see the list or otherwise know what we're dealing with...
__________________
Webmaster, The PC Guide -- Relaunching in 2014 with all-new material!
Author, The TCP/IP Guide (getting a bit old but still lots of good free info)
"If two traditional cores are like normal identical twins, CMT is like conjoined twins,
and traditional SMT is like a person with multiple personality disorder." -- Exophase
|
|
|
01-24-2013, 10:07 AM
|
#27
|
|
Lifer
Join Date: Mar 2000
Location: MKE, WI
Posts: 19,185
|
Quote:
Originally Posted by degibson
How many files are you keeping? Maybe it'd be simpler to copy out all the files you're keeping then del the entire remaining directory?
|
We will be keeping way more than deleting.
__________________
"Ah... In a time of such ugliness, the only true protest is to be beautiful." - Refused
|
|
|
01-24-2013, 12:55 PM
|
#28
|
|
Diamond Member
Join Date: Feb 2003
Location: Chicagoland, IL
Posts: 3,470
|
Dump the paths from SQL to a csv:
Powershell:
Code:
Import-CSV "C:\temp.csv" | % {
$path = $_.csvcolumnname
Remove-item "$path"
}
"csvcolumnname" is whatever you name the column in row 1
If you are working at the directory levels you could wildcard the paths as needed. A couple of examples of data sql is returning might help me give you a better solution.
Last edited by imagoon; 01-24-2013 at 01:10 PM.
|
|
|
01-27-2013, 10:40 PM
|
#29
|
|
Senior Member
Join Date: Oct 2010
Location: nowhere important
Posts: 783
|
Do this all the time using vbscript. We do it based on historical values of timestamps; deleting files older than a specific date.
In a nutshell, just write the code in vbscript, save it and run it using a schedule task. Its ridiculously easy to do. Google for the script as its out there. And yeah you can do it a few ways too using Powershell or windows commands in a batch file or even Windows explorer search.
|
|
|
02-01-2013, 03:08 PM
|
#30
|
|
Lifer
Join Date: Mar 2000
Location: MKE, WI
Posts: 19,185
|
Initial count of first batch is 461,479. They tightened the purge parameters some, so the "millions" has been reduced. That being said. the 461,479 is only the # of scans. Each scan could contain 1-## actual .tif files. I'm using a wild card on each of the 461,479 so while its 461,479 rows of "del", it could end up being millions of actual *.tif files that get nuked still.
__________________
"Ah... In a time of such ugliness, the only true protest is to be beautiful." - Refused
|
|
|
02-01-2013, 03:15 PM
|
#31
|
|
Discussion Club Moderator Elite Member
Join Date: May 2012
Posts: 6,318
|
That's no biggie.
__________________
Webmaster, The PC Guide -- Relaunching in 2014 with all-new material!
Author, The TCP/IP Guide (getting a bit old but still lots of good free info)
"If two traditional cores are like normal identical twins, CMT is like conjoined twins,
and traditional SMT is like a person with multiple personality disorder." -- Exophase
|
|
|
02-01-2013, 04:27 PM
|
#32
|
|
Lifer
Join Date: Mar 2000
Location: MKE, WI
Posts: 19,185
|
Quote:
Originally Posted by CharlesKozierok
That's no biggie.
|
No. not as horrific as it initially was planned to be. But they adjusted their purging rules so it would have been millions otherwise. Still is a hefty delete, and I'll be nervous as I double click the .bat file
__________________
"Ah... In a time of such ugliness, the only true protest is to be beautiful." - Refused
|
|
|
02-01-2013, 05:22 PM
|
#33
|
|
Discussion Club Moderator Elite Member
Join Date: May 2012
Posts: 6,318
|
Then you don't have adequate backups.
Offer remains if you need help when the time comes. Just drop me a line.
__________________
Webmaster, The PC Guide -- Relaunching in 2014 with all-new material!
Author, The TCP/IP Guide (getting a bit old but still lots of good free info)
"If two traditional cores are like normal identical twins, CMT is like conjoined twins,
and traditional SMT is like a person with multiple personality disorder." -- Exophase
|
|
|
02-04-2013, 09:18 AM
|
#34
|
|
Lifer
Join Date: Mar 2000
Location: MKE, WI
Posts: 19,185
|
Quote:
Originally Posted by CharlesKozierok
Then you don't have adequate backups.
Offer remains if you need help when the time comes. Just drop me a line.
|
I'm not in charge of backups. And those that are, I don't have the most faith in.
__________________
"Ah... In a time of such ugliness, the only true protest is to be beautiful." - Refused
|
|
|
02-04-2013, 09:27 AM
|
#35
|
|
Discussion Club Moderator Elite Member
Join Date: May 2012
Posts: 6,318
|
Well, you never run a delete script on a set of files without a backup, unless it is absolutely impossible.
__________________
Webmaster, The PC Guide -- Relaunching in 2014 with all-new material!
Author, The TCP/IP Guide (getting a bit old but still lots of good free info)
"If two traditional cores are like normal identical twins, CMT is like conjoined twins,
and traditional SMT is like a person with multiple personality disorder." -- Exophase
|
|
|
02-04-2013, 09:37 AM
|
#36
|
|
Lifer
Join Date: Mar 2000
Location: MKE, WI
Posts: 19,185
|
If I'm told the backups are fine, then I am in the clear. If there is a F-up it is not in my scripts.
__________________
"Ah... In a time of such ugliness, the only true protest is to be beautiful." - Refused
|
|
|
02-16-2013, 04:10 PM
|
#37
|
|
Golden Member
Join Date: Aug 2005
Location: Budapest, Hungary
Posts: 1,079
|
Make sure you have a backup because even the slightest error in code could end in disaster. Any script/prg would require serious testing before allowing it to comb the folder structure.
Perhaps you should make the test program/script copy the files somewhere and only then delete them.
Later you can always delete the copies.
__________________
2500K + be quiet! Dark Rock Pro 2 Dual Tower | Asrock X79 Pro3 | 2x 4GB Corsair CMX8GX3M2A2000C9 @ 1866 | Gigabyte 7870 Factory-OC 1100MHz | ASUS Xonar + Sennheiser HD600 | X25-M 160GB MLC G2 + bunch of 2TB 7200 drives | PIONEER DVR-219L | CM 690 II Advanced | 500W Cooler Master (basic) | G18 keyboard | Razer DeathAdder V2 | Benq GW2750HM 27" AMVA
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:51 AM.
|