title: Get the filename of a running batch file
body: <p>I am trying to make a batch file that will write the name we names it.
  For example if i names the file "test1" and start it it will change the title only to "test1" If i change the name to "bat file" it will display "bat file" in the title.</p>
  
  <p>Is it possible to make a file that will write to a .txt file with the same name as the bat file? I am trying to make a batch file that will log sometings and write it too ".txt" where  is the name of the bat file without extension</p>