title: run cygwin terminal using vb
body: <p>i need a code to type and perform commands in cygwin terminal in hidden mode(background) using visual basic, i was using cmd but now i want to use a Linux source code so i must use linux.
   i ran cmd in hidden mode successfully but it isn't working with cygwin, here is the cmd code:<br>
  <code>Shell("cmd.exe /k tracert -h  " &amp; _h &amp; " " &amp; domain.Text &amp; " &gt; temp" &amp; i + 1 &amp; ".txt &amp; exit", AppWinStyle.Hide, True)</code></p>
  
  <p>so i have tried</p>
  
  <p><code>Shell(""C:\cygwin\Cygwin.bat -k tracert -h  " &amp; _h &amp; " " &amp; domain.Text &amp; " &gt; temp" &amp; i + 1 &amp; ".txt &amp; exit", AppWinStyle.Hide, True)</code></p>
  
  <p>and</p>
  
  <p><code>Shell("C:\cygwin\Cygwin.bat")
  'SendKeys.Send("tracert -h " &amp; _h &amp; " " &amp; domain.Text &amp; " &gt; temp" &amp; i + 1 &amp; ".txt"))</code></p>
  
  <p>but this still didn't work where in the second code i still have to press enter in cygwin to process the traceroute and which should be automaticcaly processed, so i hope that i'll find help in here.</p>