@echo off
start /WAIT /B python -m pip install --upgrade pip wheel setuptools
start /WAIT /B pip install Django==3.2.10
start /WAIT /B python -m venv --upgrade --upgrade-deps venv
cmd /WAIT /B /k "venv\Scripts\activate.bat"
@echo off
start /WAIT /B python -m pip install --upgrade pip wheel setuptools
start /WAIT /B pip install Django==3.2.10 virtualenv
start /WAIT /B virtualenv venv
cmd /WAIT /B /k "venv\Scripts\activate.bat"
@echo off
start /WAIT /B python -m pip install --upgrade pip wheel setuptools
start /WAIT /B pip install -r requirements.txt
start http://127.0.0.1:8000
cmd /k "venv\Scripts\python.exe manage.py runserver"
PAUSE
Test-NetConnection 192.168.178.35 -p 389
Test-NetConnection 127.0.0.1 -p 8000
Test-NetConnection 192.168.1.201 -p 4370
Test-NetConnection 192.168.29.113 -p 4370
netstat -ano | findstr 4370
telnet 127.0.0.1 8000
FOR /F "tokens=4 delims= " %%P IN ('netstat -a -n -o ^| findstr :8000') DO @ECHO TaskKill.exe /PID %%P
FOR /F "tokens=4 delims= " %P IN ('netstat -a -n -o ^| findstr :8000') DO @ECHO TaskKill.exe /PID %P
cd /mnt/d/Documents/Github
@echo off
title "Automatic Sync"
cmd /k "..\venv\Scripts\python.exe ..\manage.py runserver 5656"
PAUSE
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run chr(34) & "D:\Documents\GitHub\easybio-multi\testcmd\easybio_app.bat" & Chr(34), 0
Set WshShell = Nothing
@echo off
title EASYBIO SINGLE DEVICE APP
netstat -ano | find /i "listening" | findstr 127.0.0.1:8000 >nul 2>nul && (
@REM if port is already running then just launch the browser
start http://127.0.0.1:8000
EXIT
) || (
@REM if port is not running
start http://127.0.0.1:8000
cmd /k "venv\Scripts\python.exe manage.py runserver --noreload"
PAUSE
)
@echo off
title EASYBIO Live Event
@REM cmd /k "venv\Scripts\python.exe toaster.py"
@REM PAUSE
tasklist /V /NH /FI "IMAGENAME eq cmd.exe" /FI "WINDOWTITLE eq EASYBIO Live Event*" /FI "STATUS eq running" | findstr "python" >nul && (
@REM if port is already running then just launch the browser
EXIT
) || (
@REM if port is not running
cmd /k "venv\Scripts\python.exe toaster.py"
PAUSE
)