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: Fymicohuang 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.