1
Answer

Batch file commands in c#

Ask a question
Mike Ben

Mike Ben

13y
1.6k
1
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)