Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start Django project by one clik using BAT file

I want the user press one icon (link to BAT file) on the DESKTOP and it starts two processes.

first - start django server

second - crome

file.bat

@ECHO OFF
start cmd.exe "D: && cd D:\D1\ && python manage.py runserver"
start C:\"Program Files (x86)"\Google\Chrome\Application\chrome.exe "http://127.0.0.1:8000/"

where is my mistake? BAT file just start cmd.exe and go to directory D:\D1 and nothing more. The sintax of the second line is correct.

Where is the error?

like image 701
Miorita Avatar asked Oct 21 '25 02:10

Miorita


1 Answers

@ECHO OFF
start cmd.exe /C "python manage.py runserver && cd D:\D1\ && D:"
start C:\"Program Files (x86)"\Google\Chrome\Application\chrome.exe "http://127.0.0.1:8000/"
like image 77
Miorita Avatar answered Oct 23 '25 17:10

Miorita



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!