필터 지우기
필터 지우기

How to go to the next line in case of using 'system' command ?

조회 수: 5 (최근 30일)
Muharrem Askin
Muharrem Askin 2012년 6월 5일
I am trying to run the program by using 'system' command and then move the mouse cursor and click on it.I can open the program by using 'system' command but it does not follow the next line in the code unless I close the program. I would like to move the mouse cursor without closing the program. How can I stop the 'system ' command after I used it ?

채택된 답변

TAB
TAB 2012년 6월 5일
Try
>> system('YourCommand &')
  댓글 수: 4
Muharrem Askin
Muharrem Askin 2012년 6월 5일
windows XP professional
TAB
TAB 2012년 6월 5일
You can put the line as
system(' "C:\Documents and Settings\guestaskin\Desktop\model\idling1.$PJ" &') ;
OR
If your program file (idling1.$PJ) can be executed by double click on it, then you can use
>> winopen('C:\Documents and Settings\guestaskin\Desktop\model\idling1.$PJ');
winopen() is equivalent to double clicking on a file.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Muruganandham Subramanian
Muruganandham Subramanian 2012년 6월 5일
Hi askin,
Did you use the 'home ' command. I think it'll work, just try it.
  댓글 수: 1
Muharrem Askin
Muharrem Askin 2012년 6월 5일
I didnt understand the function of 'home' command here. In the help file it says it is used to Move
cursor to upper-left corner of Command Window.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by