??? How to delete ??? help ,help ^_^ - Page 6 - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 07-27-2005, 11:33 PM   #51 (permalink)
Junior Techie
 
Join Date: Jan 2005
Posts: 55
Default

"did you: use one of your dos-bootable cds and boot staright into dos, use dir/ah to see the file and then just delete it?"

yes , i did this...
__________________

__________________
Simple is best
-----------------
Learning English ...
ÏëѧÖÐÎĵļÓÎÒmsn:alexanderxyh@hotma il.com£¬ºÇºÇ
alexanderxyh is offline  
Old 07-27-2005, 11:36 PM   #52 (permalink)
Junior Techie
 
Join Date: Jan 2005
Posts: 55
Default

to Inaris:
path:
"C:\Documents and Settings\Steven\Desktop"
name : CAWLURE7.
__________________

__________________
Simple is best
-----------------
Learning English ...
ÏëѧÖÐÎĵļÓÎÒmsn:alexanderxyh@hotma il.com£¬ºÇºÇ
alexanderxyh is offline  
Old 07-28-2005, 02:21 PM   #53 (permalink)
Master Techie
 
Join Date: Oct 2003
Posts: 2,258
Default

First, you need to install the perl program. Go here, and install it:
http://downloads.activestate.com/Act...SWin32-x86.msi
Ok, here it is. This is what you will want to do. Take the text in the quote block and past it into a new test document. call it "file_finder.pl" Make sure you allow for the extention change, otherwise it will be .pl.txt and that won't do a thing. Then open a command window. type the following.
c:
cd\
cd %userprofile%\desktop
file_finder.pl CAWLURE7.
This will try to find the file and delete it. The program looks at all know attib sets and checkes the whole machine. It also will write out a log file of all the files that it found, called file.xls
This should do it if it can. The cmd window will show you the progress as it goes. attach the image of the window when you are done.

Quote:
$value = $ARGV[0];
@atr = qw(-d s h r a sh sr sa hr ha ra shr sha hra sra);
for(@atr){
@files = qx(dir c:\\$value /a:$_ /b/s);
foreach $file(@files){
push @all,$file;
}
}
@all = sort(@all);
open(OUT,">file.xls");
for(@all){
print OUT "$_";
}
close OUT;
for (@all){
chomp;
if ($_ =~m/$value/i){
unlink $_;
}
}
Good luck.
Inaris is offline  
Old 07-28-2005, 11:05 PM   #54 (permalink)
Junior Techie
 
Join Date: Jan 2005
Posts: 55
Default image when use perl

it said can not find ,but it still lays there ...
Attached Images
File Type: jpg perl.jpg (70.0 KB, 14 views)
__________________
Simple is best
-----------------
Learning English ...
ÏëѧÖÐÎĵļÓÎÒmsn:alexanderxyh@hotma il.com£¬ºÇºÇ
alexanderxyh is offline  
Old 07-29-2005, 05:27 PM   #55 (permalink)
Master Techie
 
Join Date: Oct 2003
Posts: 2,258
Default

can you post the files.xls file for me?
Inaris is offline  
Old 07-29-2005, 09:23 PM   #56 (permalink)
Junior Techie
 
Join Date: Jan 2005
Posts: 55
Default

files.xls is empty ...
__________________

__________________
Simple is best
-----------------
Learning English ...
ÏëѧÖÐÎĵļÓÎÒmsn:alexanderxyh@hotma il.com£¬ºÇºÇ
alexanderxyh is offline  
Closed Thread

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 10:38 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.