How to fill password runas command in java

2019-08-28 03:26发布

问题:

I have problem inserting password runas in java, i have searched for the answer but not yet get the answers, anyone can help me to solve my problem?

Process pr = rt.exec("runas /profile /user:USER \""+command+"\"");