Dir: A line of code that extracts all the video file names and paths

Source: Internet
Author: User

Some time, the department received a task, request to the company's existing video file data to do a statistical sorting work.

The leader called the meeting, asked: Two weeks time enough?

The first step in statistical sorting is to enter the video file name source category information into the Excel table in order to do the next work.

Everyone looked at each other, manually copy the video file name pasted into the Excel table, time-consuming, data accuracy is not too high.

I volunteered, I'll take care of this step.

Batch-processing code:

-------------------------------------------------------

DIR/S/b >>videolist.txt

------------------------------------------------------

After saving this line of code to a TXT document, change the suffix to. bat and put it in all directories in the video file, and the problem is resolved successfully.

Note:

1. The efficiency of batch processing was not too high, and I later rewritten the code with PowerShell. PowerShell is the next generation batch that Microsoft launches.

2. The code search generates a plain text file named "VideoList.txt" that contains all the video file names and is imported into an Excel spreadsheet to perform the next step of sorting.

Dir: A line of code that extracts all the video file names and paths

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.