1. Create a scheduled task which simply executes a batch file, say
c:\mybatch.bat. You can disable this scheduled task because you don't
really want it to run on a schedule, but rather when you tell it to.
Create a new file which contains the path and filename of the batch
file you really want to execute, and save this new file as
c:\mybatch.bat (such that when the scheduled task is run, it will
execute this new batch file).
3. In your web app code, create a
new process which will simply run the schedule task, as follows:
myprocess.StartInfo = new ProcessStartInfo("cmd.exe", "schtasks /run