title: Read name of the file which was taken as sys.argv[1] input
body: <p>I have written a code to process the data of 3 excel files, and output a new file. The 3 files are dragged and dropped onto a batch file which opens ipython and then opens the .py file to run the code. The excel files which are dragged and dropped onto .bat file, are read as "sys.argv".</p>
  
  <pre><code>file1 = sys.argv[1]
  file2 = sys.argv[2]
  file3 = sys.argv[3]
  </code></pre>
  
  <p>Then i read the files into pandas dataframes.</p>
  
  <pre><code>df1 = read_excel(file1,None)
  df2 = read_excel(file2,None)
  df3 = read_excel(file3,None)
  </code></pre>
  
  <p>The issue is that while dragging and dropping the files onto .bat file, i don't know which one will be read as file1/file2/file3.</p>
  
  <p>I could read the column names within the dataframe to decide which one is which. But that may not work every time. The three files that I am dragging and dropping have unique names which will not change. I figured i could try and read the name of the file from sys.argv and then redirect them to the correct dataframe.</p>