views:

24

answers:

2

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

A: 

Just call the batch file using the shell execute command:

Util.Cmd (@"c:\batch\MyBatchFile.bat");
Joe Albahari
I tried to launch IE doesn't work:Util.Cmd (@"""C:\Program Files\Internet Explorer\iexplore.exe""");
cchang
A: 

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.

cchang