Run a .BAT file from .Net with parameters
Posted by Em on 7 February, 2008
9 Comments
This item was filled under [ .Net ]
Last week, I had to execute a batch file using ASP.Net with parameters. I searched couple of forums, tried few codes but one of them worked really nice. I have tweaked the code to use parameters and its working! =)
public string executeBAT(string workingDir, string batchFile, string batchParameters)
{
//workingDir e.g. "c:\\temp\\" (where your batch file is placed)
//batchFile [...]