[Solved] translate my code to a batch file for me [closed]


The simplest solution, since you already have working C# code, is to create a Console Application, and use your existing code in the Main() method.

Compile it into an EXE, and place the EXE somewhere on the computer where the code must run.

Use Windows Task Scheduler to schedule your EXE to run as needed.

Make sure you add logging so you can keep track of any errors that happen when the program runs unattended. NLog is a good place to start.

2

solved translate my code to a batch file for me [closed]