Forum Discussion

FICO's avatar
FICO
Community Manager
6 years ago

Changing Parameter while running from command prompt

Hi All, I have written a code where I change the name of the data file manually like following:

parameters

 INPUTFILE = 'mmsheet.xlsx:J_G_P5_Input_20I_5J_IntData.xlsx'

 VERBOSE = 1

end-parameters

Now, I want to create a batch file and run multiple data file sequentially by calling the program and changing the INPUTFILE name.

I have tried "mosel DCA_Based_Brunch_Cut_Consolidated_V_23 > mylog.txt" this in command prompt and it is running. However, for changing the inputfile name I have tried the following:

mosel DCA_Based_Brunch_Cut_Consolidated_V_23 [param = INPUTFILE['mmsheet.xlsx:C_M_P10_Input_30I_5J_IntData.xlsx']] > mylog.txt , which is not working.

Any help will be highly appreciated.

1 Reply

  • FICO's avatar
    FICO
    Community Manager

    Please try the following form:

    mosel DCA_Based_Brunch_Cut_Consolidated_V_23 "INPUTFILE='mmsheet.xlsx:C_M_P10_Input_30I_5J_IntData.xlsx'" > mylog.txt