title: ShellExecute - ERROR code 5
body: <p>I am using Notepad++ with TDM-GCC. My computer is 2Gb RAM Windows 10 32 bit 3.30 GHz. When I execute my simple program, it shows error.</p>
  
  <pre><code>Access is denied.
  An attempt was made to execute the below command.
  Command: D:\Deane\Github\CPP_Projects\AnalysisName\main.bat
  Arguments:
  Error Code: 5
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/UdEKQ.png" rel="nofollow noreferrer" title="tooltip">Image of the error</a></p>
  
  <p>I follow this: <a href="https://stackoverflow.com/questions/24761582/shellexecuteex-function-always-returning-error-code-5-c">ShellExecuteEx function always returning error code 5 (C++)</a></p>
  
  <p>Program's code (if necessary):</p>
  
  <pre><code>/* AnalysisName Program - written by Vo Tran Nha Linh */
  
  #include &lt;iostream&gt; // Input and Output library.
  using namespace std;
  
  int main()
      {
      string name;
      cout &lt;&lt; "Hello friend! It's nice to meet you, what is your name?" &lt;&lt; endl;  // Ask the name.
      cin &gt;&gt; name; // Input name.
      cout &lt;&lt; "Hello " &lt;&lt; name &lt;&lt; ". Your name is interesting." &lt;&lt; endl; // Have a greeting.
      cout &lt;&lt; "Your name has " &lt;&lt; name.length() &lt;&lt; "letters." &lt;&lt; endl; // Show the name's length.
      cout &lt;&lt; "It starts with " &lt;&lt; name.front() &lt;&lt; "letter." &lt;&lt; endl; // Show the first letter of the name.
      cout &lt;&lt; "It ends with " &lt;&lt; name.back() &lt;&lt; "letter." &lt;&lt; endl; // Show the last letter of the name.
  
      return 0;
  
  }
  </code></pre>
  
  <p>But it doesn't active, please give me a help. Thank you very much!</p>