English 中文(简体)
当窗户会议相互脱节时,我怎么办我的申请?
原标题:How can I run my application when windows session is disconnected?

I have made a simple application in C# and WHITE, which click on a button to clear the logs. I use to connect to my test machine using Remote Desktop Connection and execute that application. It works fine when my session is connected but whenever i disconnect my session, it stops working.

在窗口会议相互脱节时,是否有办法执行这一应用?

问题回答

http://msdn.microsoft.com/en-us/library/zt39148a.aspx” rel=“nofollow”

You could also use the task scheduler. You may not need the C# wrapper, you can add yourself the required entry within the scheduler.

It works fine when my session is connected but whenever i disconnect my session, it stops working.

这是按设计的。 当你脱离会议时,会议被锁定。 贵会议闭门后,国际标准化组织自动化赢得了t工作。

你们可以通过永远不停会议,可能通过不同的远程桌面工具(VNC/PcAny,处) ha。 但这肯定是一个黑客。

我建议采取不同的做法。 我建议尽可能避免自动化。 我一直认为,数字分析自动化是虚幻和不可靠的。

In the comments on your question you said your app is simply UI automation to click a button to clear a log. The logs are generated by the DebugView application.

I suggest you log to a file instead. This feature is mentioned on the web site for DebugView:

http://technet.microsoft.com/en-us/sysinternals/bb896647

你们也可以研究利用远程监测。

如果规模是个问题,你还可以研究“记录记录仪记录总结”和“记录仪表滚动”特征。

Taken from https://www.ranorex.com/help/latest/ranorex-remote/remote-faq#c13444

3. 在你的边远机器上建立批号,并插入以下代码:

for /f "skip=1 tokens=3 usebackq" %%s in (
  `query user %username%`
) do (
 %windir%System32	scon.exe %%s /dest:console
)

Save this batch file on the desktop of your remote machine and name it: KeepSessionOpen.bat . If you need to disconnect the RDP session, you can now simply run this batch file using administrator privileges and your remote machine will remain unlocked.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签