title: Running an exe file in windows container using docker
body: <p>I want to run an exe file on window container using Docker. My exe accepts parameters. New file gets created in predefined directory</p>
  
  <pre><code>ie:- Test.exe -f1=file1.txt -f2=file2.txt
  
  **Output** :
  Writing file file1.txt
  Successfully created file file1.txt 
  Writing file2 file2.txt
  Successfully created file file2.txt
  Enjoy!!
  </code></pre>
  
  <p>My docker file looks like below </p>
  
  <pre><code>FROM microsoft/aspnet:3.5-windowsservercore-10.0.14393.1715 
  SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
  Copy Test.exe ./TestFolder/
  WORKDIR /TestFolder
  ENTRYPOINT ["Test.exe"]
  CMD ["f1=file1.txt","f2=file2.txt"]
  </code></pre>
  
  <p>I build the image and run the container </p>
  
  <pre><code>docker build -t image1 .
  docker run -it image1
  </code></pre>
  
  <p>Once the container runs I get the exact above output but when I login to container machine using scripts, I don't see any file created in the predefined path.
  Am I missing out anything ? Is this the correct way to run exe file on windows base image?</p>
  
  <p>Any advice is appreciated. Thanks</p>