Windows Task Scheduler on File change

776

Solution 1

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

Solution 2

'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.

Solution 3

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.

Share:
776

Related videos on Youtube

user1069528
Author by

user1069528

Updated on September 17, 2022

Comments

  • user1069528
    user1069528 over 1 year

    We're using version 1.3 of Bootstrap. We're popping up an IFrame from this div:

    <div id="searchDialog" class="modal hide" title="Search">
    
        <div class="modal-header" style="left:40%">
           <a href="#" class="close">&times;</a>
           <h3>Search</h3>
         </div>
         <div class="modal-body">
            <iframe style="width: 700px; height: 400px; overflow: auto; border-style: none" src="<c:url value="/kb/workgroup/usersearch"/>"></iframe>
         </div>
    
    </div>
    

    In the JSP that is involked (via Spring MVC) it has the bootstrap css reference:

    <link type="text/css" rel="stylesheet" href="<c:url value="/resources/skins/kb/css/bootstrap.css" />" />
    

    The IFrame works fine with Firefox but IE 8 has a vertical scroll bar but no extra content to scroll. When I remove the bootstrap css reference the vertical scrollbar disappears.

    So I'm thinking bootstrap's need for 960px might confuse ... or something similar.

    Also with the bootstrap css reference in there when I try to use bootstrap row and span classes the effect is odd i.e., is not working properly.

    Any thoughts? (Hard for us to upgrade bootstrap at this point). Can I expect to use Bootstrap within an IFrame? I've looked unsuccessfully for examples. Thanks

    • user33788
      user33788 almost 14 years
      I think windows live mesh will do what you want! www.mesh.com
    • Alex
      Alex almost 14 years
      @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
    Alex almost 14 years
    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
    Alex almost 14 years
    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.
  • Michael
    Michael almost 14 years
    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.)
  • Alex
    Alex almost 14 years
    Have just tried it - works like magic.
  • akira
    akira almost 14 years
    @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.
  • Alex
    Alex almost 14 years
    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.
  • akira
    akira almost 14 years
    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).
  • Quantum
    Quantum over 7 years
    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.