Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I'm a beginner in automation tasks. I don't have experience on it.

I have 2 scripts in C# (and one in CLI of CollabNetTeamForge,but for now we can forget about this last one).

These scripts generate two XML docs which are connected and synchronized in a SharePoint Portal.

I tested this architecture-flow locally from-in my PC and it works but what I want to do is automatize the execution and fix a remote storage of this flow-scripts. I want to fix a "task" which execute and save hourly this scripts in-from a external path (not locally in my PC) in order to keep updated the info (XML docs) in SharePoint without human intervention.

I tried to find info but I still a bit lost. I don't know what platforms or resources let me do this . Could someone point me in the right direction?

Is it possible to use a Task Scheduler inside of a Server to create a task wich run both scripts and overwrite the XMLs daily/hourly? Independently of a PC?
Posted
Updated 20-Mar-14 0:31am
v6
Comments
MK-Gii 19-Mar-14 8:31am    
Is the computer, receiving script execution, is connected to domain and you have admin rights on that domain?
Kinna-10626331 19-Mar-14 8:44am    
mmm.... I'm testing locally the scripts (in my PC) and the XMLs result from the scripts are pushed into SharePoint Lists through Layer2 ,so is this software who handle the connections rights in SharePoint with an admin account ,not the scripts. The scripts only generate the XML data.What I want it's automatize the execution of the scripts hourly and remote, not locally. What I don't know it's where I should store it and how to program this task or with what resource.

1 solution

Simply create windows service and use timer in it
it will run on ur cloud or server and at your specified interval your c# code will be run on cloud or server.
I did this for one of my project a few years ago because asp.net or web services cant do this..
 
Share this answer
 
Comments
Kinna-10626331 20-Mar-14 6:28am    
Ok , I will check about it . Is it possible use a Task Scheduler in a Server to fix a task that run both scripts and overwrite the XMLs daily/hourly ? Independently of a PC ?
Hassue Rana 20-Mar-14 15:04pm    
yeps u can also do it using task scheduler as well but i am quite use to with windows services.

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