run script forever

Advertisement

nuwwrak
Joined:
Posts:
1

run script forever

Hi
I want to sync a directory on 5 windows 7 machines to a windows 2019 ssh server
so i created a script and this works.

Now I need to make sure this script runs every 10 minutes forever.
If the windows 7 machine gets rebooted it should start syncing again.

So whats the best way to do this?
I create a scheduled task on the system account? I create a service?
I prefer creating tasks/services with cmd, powershell2,...
thanks

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum