java - Runtime.exec() 在我登录之前无法在 Windows Server 中执行
问题描述
代码很简单:
Runtime.getRuntime().exec("c:\\path\\to\\exefile");
我从tomcat运行这段代码,它本身在cygwin中运行,操作系统是Windows Server 2016。我发现exe
文件在我登录Windows之前不会运行,很奇怪。有任何想法吗?
解决方案
推荐阅读
- javascript - JavaScript LHS 和 RHS 查找错误
- mongodb - 使用 MongDB C# 驱动程序连接两个集合的查询中的 NOT IN 过滤器
- c++ - 在 C++ 中使用 IFileDialog 以编程方式预选
- sql - 如何构建查询以合并给定时期内的主明细记录
- linux - 从循环修改全局变量
- javascript - 我的javascript函数确实删除了,但不是我的意思
- javascript - 在没有ajax调用的情况下使用带有@HTML.BeginForm的formdata append
- awk - 在运行时在 awk 脚本中捕获或评估错误的正则表达式字符串
- powershell - 服务不显示可以正确关闭
- sql-server - SSIS - 脚本任务...使用此版本集成服务不支持的 15.0 版脚本