English 中文(简体)
java获得休息时间。 摘自需要UAC的特例
原标题:java getRuntime().exec an exe that requires UAC

因此,我们有一个作为窗口服务的支离破碎过程。 它需要携带<条码>的指挥。 它所执行的指挥要求UAC。 这是在2008年窗户服务器上,像你一样,对单一可起诉的UAC不能置之不理,因此,是否还有其他办法使这项工作得以开展?

最佳回答

如果 Java申请作为窗口服务,则最有可能在系统账户中进行:SYSTEM(很可能)、LOCAL SERVICE或NETWORK SERVICE。 因此,如果服务由海关数据表账户管理,你从服务开始的一切都将继承账户。 必须允许你与桌面互动。

总而言之,如果你的工作进展升级,那么从中开始的进程也将升级。


为提升职等,您必须使用ShellExecuteShellexuteEx<>d。 如果你重新开端的标记是/level=requireAdministrator,则要标出的是UAC dialog。 如无标识,请使用<条码>,<>条码/代码>verb/operation to force UAC accreditation dialog。 注:Windows XP的runas 将显示“Run as anotheruser”dialog。

如果Runtime.getRuntime().exec(command)>通过壳牌Execute加以实施,那么,用适当的标识标识标识标识标识标出;如果exec ,则使用CreateProcess,则这一过程将以现行用户特权开始,即没有升级;此外,如果程序在显示器上。

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签