Hi all,大家好,
I am trying to edit a .rdp file for a user so that it opens a specific MS Access database when the connection is established. I am using a Server 2016 RDS server with MS Access 2016 runtime as a published RemoteApp for our users.我正在尝试为用户编辑 .rdp 文件,以便在建立连接时打开特定的 MS Access 数据库。我使用带有 MS Access 2016 运行时的 Server 2016 RDS 服务器作为为我们的用户发布的 RemoteApp。
The problem we are running into is that when MS Access runtime is opened directly from the executable, you receive the following error message:我们遇到的问题是,当直接从可执行文件打开 MS Access 运行时时,您会收到以下错误消息:
“Can’t find the database you specified, or you didn’t specify a database at all. Specify a valid database name in the command line, and include a path if necessary.”“找不到您指定的数据库,或者您根本没有指定数据库。在命令行中指定有效的数据库名称,并在必要时包含路径。”
This appears to be the default behavior of MS Access runtime unless you directly open the database you are trying to work with.这似乎是 MS Access 运行时的默认行为,除非您直接打开要使用的数据库。
After some research, it appears that the remoteapplicationcmdline:s: line in the .rdp file may allow us to pass a parameter that will tell Access which file to open. I have scoured the web and cannot find anything definitive that explains how to use this though. It sounds like maybe you have to create variables first somewhere? But I have not been able to find any information on this either.经过一些研究,.rdp 文件中的remoteapplicationcmdline:s: 行似乎允许我们传递一个参数来告诉 Access 要打开哪个文件。我浏览了网络,但找不到任何明确的解释如何使用它的信息。听起来也许你必须先在某个地方创建变量?但我也没有找到任何这方面的信息。
Thanks for any advice!感谢您的任何建议!
-Daryl-达里尔