Posts Tagged ‘.bat from asp.net’

Run a .BAT file from .Net with parameters

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 [...]

Continue reading...