title: Get the name of opened file(through a batch file) associated through a batch file(Closed by owner)
body: <p>You may want to correct the title.. But I'll try to explain what I really want..</p>
  
  <p>I have this in my batch file(<strong>Assoc.bat</strong>):</p>
  
  <pre><code>@echo off
  Assoc .unity3d=unity3dfile
  Ftype unity3dfile="%homedrive%\MyFolder\Player.bat" %1
  </code></pre>
  
  <p>And another one(<strong>Player.bat</strong>):</p>
  
  <pre><code>@echo off
  echo %1
  pause
  </code></pre>
  
  <p>What I want is <strong>Player.bat</strong> to detect the name of the <strong>.unity3d</strong> file that I opened.</p>
  
  <p><em>I'll make it shorter for you.:</em></p>
  
  <p><strong>Assoc.bat</strong> associates the <strong>.unity3d</strong> file, so it will be opened by the <strong>"Player.bat"</strong> file in my custom folder..</p>
  
  <p><strong>Player.bat</strong> has to output the name of the <strong>.unity3d</strong> file that was opened(when I open the .unity3d file, it opens <strong>Player.bat</strong> file), so the output should look like this:</p>
  
  <blockquote>
    <p>"[path]\Game.unity3d"</p>
  </blockquote>
  
  <p>And I know that "%1" gets the name of a file that was "Drag n' Dropped" on the batch file. But that's what I don't want.</p>
  
  <p><strong>Here's <a href="https://www.youtube.com/watch?v=UcAk441cDYA&amp;feature=youtu.be" rel="nofollow">a video</a></strong></p>
  
  <p>I hope you understood my English and what I want..
  Please don't hate me for that..</p>
  
  <p><strong><em>Any ideas?</em></strong></p>
  
  <p><strong>Edit: I found out a different way to make my program that I'm woking on work.</strong></p>
  
  <p><strong>Thank you all for you trying to hlep.</strong></p>