Mike Ben

Mike Ben

  • NA
  • 8
  • 7.2k

Batch file commands in c#

Sep 6 2011 11:26 AM
I have a batch file I use

CD /D %~dp0
IF /I "%~1" NEQ "" CD /D %1
FOR /F "tokens=* delims=" %%A IN ('DIR *.MSI /B /S') DO (
  cscript.exe GetMSICodes.vbs "%%A" //Nologo >> Codes.txt
  )

Is there an way to re-create this in C#?


Answers (1)