title: Trying to make SYSLOG DAEMON in Windows
body: <p>Objective:
      This daemon maintain logs at what time which text file is opened.</p>
  
  <p>Step I:
      I made one empty batch file and this file would be going to log the events into one temporary log file.</p>
  
  <p>Step II: 
      Associating text files with this batch file program<br>
          i) I right clicked on one text file.<br>
          ii) I clicked on "open with" option<br>
          iii) Then I chose my batch file program.<br>
      Now as I open any text file my batch file program starts running.</p>
  
  <p>Step III: 
       Batch file development:<br>
           i)  I opened the batch file which I created as empty in Step I<br>
           ii) I wrote following batch file commands in order to above objective:  </p>
  
  <pre><code>             @echo off
               echo %1 &gt;&gt;logs.txt
               time &gt;&gt; logs.txt
               notepad %1
               exit
  </code></pre>
  
  <p>Step IV:</p>
  
  <p>i)  As I open any txt file, then this batch file runs, but the problem is as it comes to "time" command I have to manually press enter, so is there any command in batch file programming which can produce keystrokes.<br>
  ii)  Second thing which I need is as I open my text file, cmd window pops up, I want it to remain hidden from user, so that user doesn't know about logging of events.<br>
  iii) Third thing which I need is to start the notepad process in background, so that my batch file script can proceed further.  </p>