Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to write a batch file to add in task scheduler.

the batch file contains the function to call a c# file from project..

how to write the batch file for this operation.

pls help

thanks in advance
Posted
Updated 9-Dec-14 0:28am
v2
Comments
Thanks7872 9-Dec-14 6:24am    
And?
Tomas Takac 9-Dec-14 7:22am    
It's not clear what you are trying to do. What does it mean to call a c# file from project? Do you want to invoke a particular method?

1 solution

Call the batch file "RUNME.BAT", then make it's content:
PathToTheExecutable\ExecutableFileName
So if your app is on the D drive, in the Temp folder, and called MyApp.exe, then teh file will contain:
D:\Temp\MyApp
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900