By default the Windows start
command does not wait for the specified command to finish, so it's possible for the other command you want to execute to (randomly) start before the current working directory has been changed. You can add a /wait
argument to it (the start
command) which should prevent that from happening.
↧
Answer by martineau for Python command prompt executed the second command before executing the first command
↧