Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement batch processing to import the file name in the file man into the corresponding name of the table

2026-02-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces "how to batch process and import the file name in the file man into the corresponding name of the table". In the daily operation, I believe that many people have doubts about how to batch process the file name in the file man into the corresponding name of the table. The editor consulted all kinds of data and sorted out a simple and useful operation method. I hope it will be helpful to answer the question of "how to batch import the file name in the file man into the corresponding name of the table"! Next, please follow the editor to study!

Use batch implementation to import the photo name in the photo file into the corresponding name in table 1

Method one

/ * & cls@echo offdir / b "Photo\ * .jpg" | cscript-nologo-e:jscript "% ~ f0" pause & exit/b*/var jpglist ='; while (! WScript.StdIn.AtEndOfStream) {jpglist + = WScript.StdIn.ReadLine () +'\ rpm;} var fd = new ActiveXObject ("Scripting.FileSystemObject"). GetFolder ("."). Pathvar objExcel = new ActiveXObject ("Excel.Application"); var objBook = objExcel.Workbooks.open (fd+'\\ 1.xls'); objBook.worksheets (1). Activate Var objSheet = objBook.activeSheet;var cnt = objSheet.usedrange.rows.count;for (var I = 1; i$ dir / b "Photo\ * .jpg" (for / f "tokens=1 delims=,"% an in (1.csv) do (set / p "=% a," findstr "% a" $| | echo ) 2.csvdel $pause so far, the study on "how to batch import the file name in the file man into the corresponding name of the table" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

  • How to realize the opening and moving of pages by JavaScript

    Editor to share with you how JavaScript can open and move the page. I hope you will get something after reading this article. Let's discuss it together. The opening and moving of the page adds the following code to the area

    12
    Report