Description: There is a program (MWC) on the local C drive (can be placed on other drives) that needs to call local files to process a large amount of data. Each time the program can only call one file, there are a total of more than 2500 (in the input folder, in the same directory as the main program). The running results are placed in the output folder (in the same directory as the main program, and the folder name corresponds one-to-one with the input folder name).
Help: How to call the local program in DOS to run in a loop until it ends.
The following is the calling code in DOS:
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\ly>cd \
C:\>cd mwc
C:\MWC>mwc -iinput/50136 -ooutput/50136 -smfx both all
Among them, -i, -o, -smfx both all are all parameters of the MWC program, and each time they are fixed, no need to care; input and output are folders, each time it is to get data from input, and output is to store data after running, which is also fixed; 50136 is a variable, there are a total of 2522, each time it is to read text data from 50136 in input, and save the result in the 50136 folder in output after execution. That is, the variable name in input and the variable name in output should correspond one-to-one.
I initially executed FOR /F in DOS, but it didn't succeed.
for /f %x in (50136 50137) do c:/MWC/MWC -iaa/%x -oaa_out/%x -smfx both all
I don't know where it went wrong.
Thank you friends for your guidance!
Help: How to call the local program in DOS to run in a loop until it ends.
The following is the calling code in DOS:
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Users\ly>cd \
C:\>cd mwc
C:\MWC>mwc -iinput/50136 -ooutput/50136 -smfx both all
Among them, -i, -o, -smfx both all are all parameters of the MWC program, and each time they are fixed, no need to care; input and output are folders, each time it is to get data from input, and output is to store data after running, which is also fixed; 50136 is a variable, there are a total of 2522, each time it is to read text data from 50136 in input, and save the result in the 50136 folder in output after execution. That is, the variable name in input and the variable name in output should correspond one-to-one.
I initially executed FOR /F in DOS, but it didn't succeed.
for /f %x in (50136 50137) do c:/MWC/MWC -iaa/%x -oaa_out/%x -smfx both all
I don't know where it went wrong.
Thank you friends for your guidance!
