How can I run a script with admin rights?

조회 수: 13 (최근 30일)
Christian Schultes
Christian Schultes 2013년 10월 25일
댓글: Christian Schultes 2013년 10월 26일
What do I have to do, if I try to run a matlab m-script with admin rigths? I would like to get a solution when I haven't started the Matlab with admin rights. Is there a way to start only one single sript with special commands? (user and password)
  댓글 수: 2
Jan
Jan 2013년 10월 25일
The management of the privileges depends on the operating system. So it is required to explain, which platform you are using.
Christian Schultes
Christian Schultes 2013년 10월 26일
Ok. Windows 7. Matlab 2009b ...

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

답변 (1개)

Walter Roberson
Walter Roberson 2013년 10월 25일
You can system() off a new invocation of MATLAB, asking it to run a particular script and quit afterwards. If necessary, have it write graphics to a .fig file and open the .fig file after return.
I do not know the command to request to run as a particular user in MS Windows. In OS-X and Linux, you can "su" or "pseudo" or "ssh"

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by