Windows Task Scheduler on File change

5

3

I am trying to synchronise my files between a Win7 Starter laptop and WinXP workstation. As Win7 Starter has limited sync support, I installed SyncToy 2.1 and it works fine. However, it requires my manually syncing the files. The help system suggests using Task Scheduler. The options of launching a task at logon/start up or every 10 min are not suitable or flexible enough. I looked at advanced trigger options and they require knowledge of Event IDs that I could not find decent info on. Hence,

in Task Scheduler, is it possible to set a trigger equivalent to 'file changed' for a specific file?

Alex

Posted 2010-06-22T13:11:27.283

Reputation: 153

I think windows live mesh will do what you want!

www.mesh.com – user33788 – 2010-06-22T14:50:18.840

@smoknheap Not what I thought of, but just what I needed! Per folder P2P sync. Thanks. Can you please turn your comment into an answer so that I can rate it. – Alex – 2010-06-23T08:53:52.470

Answers

0

think windows live mesh will do what you want! www.mesh.com

user33788

Posted 2010-06-22T13:11:27.283

Reputation: 478

That link goes to the OneDrive from Microsoft. That is a odd way to watch and sync imho. Why not dropbox at that line of thinking too. – jeremy.bass – 2017-02-02T20:21:24.557

1

'FolderWatcher' claims to do just what you want:

"Execute unlimited number of actions per folder event"

Price is a bit hefty for a wrapper around 'System.IO.FileSystemWatcher'. There are similar tools like 'WatchDirectory' available which claim the same.

akira

Posted 2010-06-22T13:11:27.283

Reputation: 52 754

Comes very close to what I was looking for. Do you think I can recreate some of the functions using Task Scheduler? So far, I could not find a good reference for Event IDs. – Alex – 2010-06-22T14:42:03.287

@which of the stuff comes close? as far as i understand folderwatcher or watchdirectory: you define your actions inside these apps and autostart them (the apps) which in turn start the actions. – akira – 2010-06-22T19:29:43.010

Thanks for getting back to me. The system events these two programs are wrapped around. If I knew the event IDs, I could set up the triggers in Task Scheduler to fit my purpose. – Alex – 2010-06-23T08:51:49.637

i think you mix something up. the events triggering System.IO.FileSystemWatcher are events of the operating system (or at a very deep level). the events you can pick in the schtasks-gui are logged events (as in system log). – akira – 2010-06-23T11:17:13.413

1

I have used VisualCron for syncing files when they are created. You can set VisualCron to watch a specific folder with a Trigger and then do whatever you want with the file when it has been written completely. You can copy, FTP it or use the name and insert into database.

Henrik

Posted 2010-06-22T13:11:27.283

Reputation: 131

0

Have you looked at different file syncing solutions like Dropbox? That would remove a lot of work on your part. A free account is good for 2 GB, I believe.

Michael

Posted 2010-06-22T13:11:27.283

Reputation: 1 185

Thanks for the suggestion. Whilst I was not looking for an option to keep my files in the cloud, it looks very promising indeed. – Alex – 2010-06-22T14:34:18.493

My only follow up is that the nice thing about Dropbox is all your files are still stored locally. On each machine, it puts a new folder in your "My Documents" directory and all of the files are simultaneously stored on each computer. Dropbox just keeps them synced up. (Incidentally, it also stores copies that are accessible via the web.) – Michael – 2010-06-22T14:52:07.620

Have just tried it - works like magic. – Alex – 2010-06-22T15:31:54.733