@echo off set "PATH=F:\Program Files\MATLAB\R2018b\bin;%PATH%" start /wait Point_sys.exe echo All programs have finished. exit