Atitit. Improve backup file copy speed (4)---Data mining get a list of Recycle Bin files

Source: Internet
Author: User
Tags file copy regular expression

Atitit. Improve backup file copy speed (4)---Data mining get a list of Recycle Bin files

1. How to put the Recycle Bin and 1

2. info2 File Structure 1

3. Get a list of files 2 methods: Regular expression or parsing 1

4. Path regular expression [a-za-z]\:[\\a-za-z0-9\xb0-\xf7\xa1-\xfe_.~]+ 2

5. Reference 2

1. How to put the Recycle Bin and

The Info2 file records the appropriate information for each file that was deleted and placed in the Recycle Bin, such as the drive indicator Dirve designator, the full file name of the original deleted files, the file size, location (path), and the time the file was moved to the Recycle Bin. When a file is moved to the Recycle Bin, the file is renamed to:

d%driveletter%_%indexnumber%_%fileextension%.

d%driveletter%:

"D" represents the disk drive,%driveletter% is placed on the file, and the first disk has its own recycler directory and Info2 file.

%indexnumber%:

Each file or folder that is put into the Recycle Bin is assigned an index number that marks the deletion order, and the larger the index number, the later the deletion. However, when the add-in is emptied or the system restarts, the index number will be assigned from the new start.

%fileextension%:
The name extension of the original file. When a folder is deleted, it has no extension.

For example:

After a file name of Hacker.txt is deleted and placed in the Recycle Bin, the file will be renamed to Dc2.txt, and the file entry can be found in the C:\Recycler\%SID%\INFO2 file.

Author:: Old Wow's paw Attilax Ayron, email:1466519819@qq.com

Reprint please indicate source: Http://blog.csdn.net/attilax

2. INFO2 file structure

For the INFO2 file structure, refer to the following figure (Source: www.cybersecurityinstitute.biz):

3. Get a list of files 2 methods: Regular expressions or parsing

Get Info2 File:

{String s= "C:\\recycler\\s-1-5-21-602162358-1284227242-682003330-500\\info2";

Core.copy (S, "c:\\info2.txt");

The encoder for this file is 10 GBK.

4. path Regular expression [a-za-z]\:[\\a-za-z0-9\xb0-\xf7\xa1-\xfe_.~]+

public static String pathexpress= "[a-za-z]\\:[\\\\a-za-z0-9\\xb0-\\xf7\\xa1-\\xfe_\\-' \\.~]+";;

5. reference

(batch) List of files that have been deleted by the Recycle Bin-needjava-blogjava.htm

Info2-riusksk ' s blog-blog bus. htm

(batch) List of files that have been deleted by the Recycle Bin-needjava-blogjava.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.