title: Can you put goto and if then into one line?
body: <p>I am trying to put the goto and the if then command in the same line because so I don't have to make a another BAT files to get the job done.
  Here an example of the code that I am makeing so far:</p>
  
  <pre><code>@echo off
  SET _cliportaskkill=0
  SET _startffox=0
  
  If "%_cliportaskkill%"=="2" goto everything
  If "%_cliportaskkill%"=="1" goto cliponly
  If "%_cliportaskkill%"=="0" goto taskkillonly
  
  
  :cliponly
  echo|set /p=username@email.com|clip
  EXIT
  
  :taskkillonly
  TASKKILL /F /T /IM Greenshot.exe &amp; TASKKILL /F /T /IM iprntctl.exe &amp; TASKKILL /F /T /IM iprntlgn.exe &amp; TASKKILL /F /T /IM smax4pnp.exe &amp; TASKKILL /F /T /IM ZenNotifyIcon.exe &amp; TASKKILL /F /T /IM ZenUserDaemon.exe &amp; TASKKILL /F /T /IM RAVBg64.exe &amp; TASKKILL /F /T /IM nwtray.exe &amp; TASKKILL /F /T /IM RtkNGUI64.exe &amp; TASKKILL /F /T /IM BingSvc.exe &amp; TASKKILL /F /T /IM Spotify.exe &amp; TASKKILL /F /T /IM SpotifyWebHelper.exe &amp; TASKKILL /F /T /IM FacebookGameroom.exe &amp; TASKKILL /F /T /IM "Facebook Gameroom Browser.exe" &amp; TASKKILL /F /T /IM zapp.exe &amp; TASKKILL /F /T /IM steamwebhelper.exe &amp; TASKKILL /F /T /IM Steam.exe &amp; TASKKILL /F /T /IM lync.exe
  EXIT
  
  :everything
  echo|set /p=username@email.com|clip
  
  TASKKILL /F /T /IM Greenshot.exe &amp; TASKKILL /F /T /IM iprntctl.exe &amp; TASKKILL /F /T /IM iprntlgn.exe &amp; TASKKILL /F /T /IM smax4pnp.exe &amp; TASKKILL /F /T /IM ZenNotifyIcon.exe &amp; TASKKILL /F /T /IM ZenUserDaemon.exe &amp; TASKKILL /F /T /IM RAVBg64.exe &amp; TASKKILL /F /T /IM nwtray.exe &amp; TASKKILL /F /T /IM RtkNGUI64.exe &amp; TASKKILL /F /T /IM BingSvc.exe &amp; TASKKILL /F /T /IM Spotify.exe &amp; TASKKILL /F /T /IM SpotifyWebHelper.exe &amp; TASKKILL /F /T /IM FacebookGameroom.exe &amp; TASKKILL /F /T /IM "Facebook Gameroom Browser.exe" &amp; TASKKILL /F /T /IM zapp.exe &amp; TASKKILL /F /T /IM steamwebhelper.exe &amp; TASKKILL /F /T /IM Steam.exe &amp; TASKKILL /F /T /IM lync.exe
  EXIT
  
  ===================================================================================================================
  
  @echo off
  If "%_startffox%"=="1" goto newwindow
  If "%_startffox%"=="0" goto newtab
  
  :newwindow
  CD /D "C:\Program Files (x86)\Mozilla Firefox"
  firefox.exe "https://www.outlook.com/" "http://everybodyedits.com/" "http://www.kongregate.com/accounts/username/recently-played"
  EXIT
  
  :newtab
  CD /D "C:\Program Files (x86)\Mozilla Firefox"
  firefox.exe -new-tab "https://www.outlook.com/" -new-tab "http://everybodyedits.com/" -new-tab "http://www.kongregate.com/accounts/username/recently-played"
  EXIT
  </code></pre>
  
  <p>Whcih is used for this BAT file:
  Old verson</p>
  
  <pre><code>@echo on
  START "taskkilling and cliping" CMD /c "@echo off &amp; echo|set /p=username@email.com|clip &amp; TASKKILL /F /T /IM Greenshot.exe &amp; TASKKILL /F /T /IM iprntctl.exe &amp; TASKKILL /F /T /IM iprntlgn.exe &amp; TASKKILL /F /T /IM smax4pnp.exe &amp; TASKKILL /F /T /IM ZenNotifyIcon.exe &amp; TASKKILL /F /T /IM ZenUserDaemon.exe &amp; TASKKILL /F /T /IM RAVBg64.exe &amp; TASKKILL /F /T /IM nwtray.exe &amp; TASKKILL /F /T /IM RtkNGUI64.exe &amp; TASKKILL /F /T /IM BingSvc.exe &amp; TASKKILL /F /T /IM Spotify.exe &amp; TASKKILL /F /T /IM SpotifyWebHelper.exe &amp; TASKKILL /F /T /IM FacebookGameroom.exe &amp; TASKKILL /F /T /IM "Facebook Gameroom Browser.exe" &amp; TASKKILL /F /T /IM zapp.exe &amp; TASKKILL /F /T /IM steamwebhelper.exe &amp; TASKKILL /F /T /IM Steam.exe &amp; TASKKILL /F /T /IM lync.exe"
  
  START "start new firefox in three new tabs" CMD /c "@echo off &amp; CD /D "C:\Program Files (x86)\Mozilla Firefox" &amp; firefox.exe "https://www.outlook.com/" "http://everybodyedits.com/" "http://www.kongregate.com/accounts/username/recently-played""
  </code></pre>
  
  <p>So I am trying make a BAT file that have options that I can use for my new verson that I use when I log on to the computer.
  So far I try testing the one of code through a different BAT file so here what I have so far:</p>
  
  <pre><code>SET _startffox=0
  CHOICE /C wt /m "w open new window, t open new tab"
  IF errorlevel 2 set _startffox=0 &amp; goto line
  IF errorlevel 1 set _startffox=1 &amp; goto line
  
  :line
  pause &amp; echo %_startffox%
  (echo on &amp; (If "%_startffox%"=="1" goto newwindow); (If "%_startffox%"=="0" goto newtab); (:newwindow &amp; ECHO "go to new window firefox" &amp; ECHO "Hi windows" &amp; pause &amp; EXIT); (:newtab &amp; ECHO "go to new tabs firefox" &amp; ECHO "Hi tabs" &amp; pause &amp; EXIT))
  pause
  </code></pre>
  
  <p>so far it does not work the way I wahntd to work.</p>