How do I use LINQPad to do execute batch job?

I recently found that LINQPad can execute shell commands. Can someone show me an example how to use LINQPad queries to execute batch job?


Sorry I didn't make my question clear. What I mean is make .linq file become my batch file. That is, schedule a batch job written in .linq file and use LINQPad as the command to execute it.

Answers


Just call the batch file using the shell execute command:

Util.Cmd (@"c:\batch\MyBatchFile.bat");

Need Your Help

Trouble redirecting all pages in a folder to a page at root level

.htaccess redirect http-status-code-301

I've searched, tried various examples, and none, other than creating an explicit list of redirect statements seems to work.

LCPI.IBProvider not registered on Local Machine

c# delphi exception firebird interbase

A legacy program coded in Delphi 7 and accessing an Interbase 3 database using C# was moved from Windows 7 64 Bit to Windows Server 2012 64 Bit.