6 Replies Latest reply on Feb 24, 2012 9:18 AM by Bill Robinson

    Using the native Windows command interpreter in an nsh script

      Is there a way to invoke the native Windows command interpreter in an nsh script?

       

      I have an nsh script that creates several csv files in the same directory of a Windows server but what I would like to do is combine those csv files into one csv file. This is very straightforward using the Windows command interpreter

       

      copy c:\temp\*.csv c:\temp\combined.csv

       

      but the nsh interpreter is does not work the same way. Therefore, I would either like to know how to call the native Windows command interpreter within my nsh script to run the above command or be able to write an nsh script that would do the same thing. Whichever is possible and easier.

       

      By the way, the business constraint is that the output must be in csv format.