title: Convert file from Windows to UNIX through Powershell or Batch
body: <p>I have a batch script that prompts a user for some input then outputs a couple of files I'm using in an AIX environment. These files need to be in UNIX format (which I believe is UTF8), but I'm looking for some direction on the SIMPLEST way of doing this. </p>
  
  <p>I don't like to have to download extra software packages; Cygwin or GnuWin32. I don't mind coding this if it is possible, my coding options are Batch, Powershell and VBS. Does anyone know of a way to do this?</p>
  
  <p>Alternatively could I create the files with Batch and call a Powershell script to reform these?</p>
  
  <p>The idea here is a user would be prompted for some information, then I output a standard file which are basically prompt answers in AIX for a job. I'm using Batch initially, because I didn't know that I would run into this problem, but I'm kind of leaning towards redoing this in Powershell. because I had found some code on another forum that can do the conversion (below).</p>
  
  <pre><code>% foreach($i in ls -name DIR/*.txt) { \
         get-content DIR/$i | \
         out-file -encoding utf8 -filepath DIR2/$i \
    }
  </code></pre>
  
  <p>Looking for some direction or some input on this.</p>