Home » Helpful Articles » NX secondary development: extract the file name in the same format under the folder

NX secondary development: extract the file name in the same format under the folder

Posted by: Yoyokuo 2021-09-27 Comments Off on NX secondary development: extract the file name in the same format under the folder

1. Create a new notepad file with any name.

2. Open the notebook file and write the following sentence:

dir *.lib*/b>D:\a.txt
Among them, “.lib” is the specified format; “D:\a.txt” is to create a notepad file named a.txt on the D drive after extraction. These can be changed as needed.

3. Save the notepad file again, and then change the format of the latter file to “.bat”;

This completes a batch file, put it in the location where you want to extract the files, and then you can extract the files of the same format in the folder.

Please keep the source and address of this article for reprinting:NX secondary development: extract the file name in the same format under the folder

Reprint Statement: If there are no special instructions, all articles on this site are original. Please indicate the source for reprinting.:Cnc Machine Wiki,Thanks!^^