title: How to open a new shell in cmd,then run script in a new shell?
body: <p>My computer's OS is win7</p>
  
  <p>I want to use a .bat file to open a new shell, then run script in a new shell</p>
  
  <p>this shell is OSGeo4W Shell</p>
  
  <p>it is located in "C:\Program Files\QGIS Dufour\OSGeo4W.bat"</p>
  
  <p>so I used </p>
  
  <pre><code>cd "C:\Program Files\QGIS Dufour\"
  OSGeo4W.bat
  cd "C:\Users\tony\Downloads\11\computingArea" 
  ogr2ogr -f CSV my_csv Grid.dbf
  ogr2ogr -f CSV csv Grid.dbf
  addcenter.exe
  ogr2ogr -f "ESRI Shapefile" my_dir ./csv/Grid.csv
  copy Grid.shp my_dir
  copy Grid.shx my_dir
  rd my_csv /s /q
  rd csv /s /q
  ogr2ogr -clipsrc t.shp test.shp ./my_dir/Grid.shp
  rd my_dir /s /q
  ogr2ogr -f CSV wellcsv welllocation.dbf
  ogr2ogr -f CSV csv test.dbf
  computingArea.exe
  ogr2ogr -f "ESRI Shapefile" my_dir ./csv/test.csv
  rd csv /s /q
  rd wellcsv /s /q
  move test.shp my_dir
  move test.shx my_dir
  del test.dbf /q
  </code></pre>
  
  <p>But, this script only open OSGeo4W Shell</p>
  
  <p>Please tell me how to solve this problem.</p>