Skip to content

Instantly share code, notes, and snippets.

@ipcjs
Created September 7, 2022 16:21
Show Gist options
  • Save ipcjs/566ae152f23596c36a5250c7cb0e25ac to your computer and use it in GitHub Desktop.
Save ipcjs/566ae152f23596c36a5250c7cb0e25ac to your computer and use it in GitHub Desktop.
@echo off
setlocal enabledelayedexpansion
rem Generated by JetBrains Toolbox 1.25.12627 at 2022-09-07T17:07:44.532710200
rem force use c:\github\@flutter, @see: https://github.com/flutter/flutter/issues/105395
set "old_dir=%cd%"
if /i "%cd:~0,18%" == "k:\github\@flutter" (
cd /d %cd:k:\github=c:\github%
echo switch work dir from %old_dir% to !cd!...
)
set waitarg=
set ideargs=
:next
set "passwait="
if "%~1"=="--wait" set passwait=1
if "%~1"=="-w" set passwait=1
if defined passwait (set waitarg=/wait)
if not "%~1"=="" (
if defined passwait (set "ideargs=%ideargs%--wait ") else (set "ideargs=%ideargs%%1 ")
shift
goto next
)
start "" %waitarg% C:/SDK/android-studio/bin/studio64.exe %ideargs%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment