此处将为大家介绍关于windows–mstsc.exe的热键是什么?的详细内容,并且为您解答有关windows热键大全的相关问题,此外,我们还将为您介绍关于C#windows窗体应用程序WordInt
此处将为大家介绍关于windows – mstsc.exe的热键是什么?的详细内容,并且为您解答有关windows热键大全的相关问题,此外,我们还将为您介绍关于C# windows 窗体应用程序 Word Interop 适用于 Windows 7 但不适用于 Windows 10、How to fix "远程计算机需要网络级别身份验证" when using mstsc on XP、Linux/Wine:windows 应用程序启动 windows 控制台命令并在 windows 上等待时在 linux 上不等待:如何修复?、MariaDB docker 从主机 Windows 10 和 Linux 访问 更新您的命令以在 Ubuntu 系统中的 docker 中运行 mysql:在 Windows 和 Linux 中检查 WSL 网络适配器的 IPv4 地址从windows连接到linux服务器Linux 上的 Docker 与 Windows 上的对比的有用信息。
本文目录一览:- windows – mstsc.exe的热键是什么?(windows热键大全)
- C# windows 窗体应用程序 Word Interop 适用于 Windows 7 但不适用于 Windows 10
- How to fix "远程计算机需要网络级别身份验证" when using mstsc on XP
- Linux/Wine:windows 应用程序启动 windows 控制台命令并在 windows 上等待时在 linux 上不等待:如何修复?
- MariaDB docker 从主机 Windows 10 和 Linux 访问 更新您的命令以在 Ubuntu 系统中的 docker 中运行 mysql:在 Windows 和 Linux 中检查 WSL 网络适配器的 IPv4 地址从windows连接到linux服务器Linux 上的 Docker 与 Windows 上的对比
windows – mstsc.exe的热键是什么?(windows热键大全)
Alt+Page Up: Move between programs from left to right.
Alt+Page Down: Move between programs from right to left.
Alt+Insert: Cycle through programs in the order that they were started in.
Alt+Home: display the Start menu.
Ctrl+Alt+Break: Switch between a window and full screen.
Ctrl+Alt+End: display the Windows Security dialog Box.
Alt+Delete: display the system menu.
Ctrl+Alt+Minus Sign (-) on the numeric keypad: Place a copy of the active window,within the client,on the Terminal server clipboard (provides the same functionality as pressing Alt+PrtScn on a local computer).
Ctrl+Alt+Plus Sign (+) on the numeric keypad: Place a copy of the entire client window area on the Terminal server clipboard (provides the same functionality as pressing PrtScn on a local computer).
Ctrl+Alt+Right Arrow: “Tab” out of the Remote Desktop controls to a control in the host program (for example,a button or a text Box). Useful when the Remote Desktop controls are embedded in another (host) program.
Ctrl+Alt+Left Arrow: “Tab” out of the Remote Desktop controls to a control in the host program (for example,a button or a text Box). Useful when the Remote Desktop controls are embedded in another (host) program.
C# windows 窗体应用程序 Word Interop 适用于 Windows 7 但不适用于 Windows 10
如何解决C# windows 窗体应用程序 Word Interop 适用于 Windows 7 但不适用于 Windows 10
我编写了一个应用程序来帮助用户使用 C# 生成字母。我创建了以富文本格式保存在 sql Server 数据库中的模板。我的开发机器是 Windows 7,我使用 Visual Studio 2019 来编写应用程序。我使用 NuGet 添加 Word 的互操作引用。该应用程序配置为面向 x86 的 Release、平台 Active(Any cpu)。它是一个 ClickOnce 应用程序,从共享驱动器安装在一个单独的目录中,但与保存字母的驱动器相同。
该应用程序在我的机器上正常运行,但在 Windows 10 用户机器上运行不正常。当它尝试保存文件时,她收到一条错误消息,提示“抱歉,我们找不到该文件”。我们都有 Word 2016。两台机器都是 64 位。我将这封信保存为 Word 中的备份,然后导出为 PDF。在导出为 PDF 之前,代码无法保存 Word 文档。请参阅下面的代码片段:
public static void SavetoWord2(string CoverLetter,string LetterText,string FileSave,string BackUpSave,ref string ErrorString)
{
try
{
Microsoft.Office.Interop.Word.Application oWord = new Microsoft.Office.Interop.Word.Application();
string headerfooterFile = Properties.FileResources.headerfooterTemplate;
Document odoc = new Document();
odoc = oWord.Documents.Add(@headerfooterFile);
odoc.Activate();
try
{
Clipboard.Clear();
Clipboard.SetText(CoverLetter,TextDataFormat.Rtf);
odoc.ActiveWindow.Selection.Paste();
Clipboard.Clear();
Clipboard.SetText(LetterText,TextDataFormat.Rtf);
odoc.ActiveWindow.Selection.Paste();
//01/26/2021 JS having trouble with the save on Pam''s machine so going to try to capture the correct error.
try
{
odoc.SaveAs(@BackUpSave);
}
catch (Exception exBU)
{
ErrorString = "Error trying to save " + @BackUpSave + ": " + exBU.Message;
}
try
{
odoc.ExportAsFixedFormat(@FileSave,WdExportFormat.wdExportFormatPDF);
}
catch (Exception exPDF)
{
if (string.IsNullOrEmpty(ErrorString))
{
ErrorString = "Error trying to save " + @FileSave + " PDF: " + exPDF.Message;
}
else
{
ErrorString += " and Error trying to save " + @FileSave + " PDF: " + exPDF.Message;
}
}
}
catch (Exception exInner)
{
ErrorString = exInner.Message;
MessageBox.Show(exInner.Message,Properties.LetterResources.SavetoWord,MessageBoxButtons.OK,MessageBoxIcon.Error);
}
Clipboard.Clear();
oWord.Quit(SaveChanges: 0);
Marshal.FinalReleaseComObject(oWord);
//oWord.Visible = true;
}
catch (Exception ex)
{
ErrorString = ex.Message;
MessageBox.Show(ex.Message,MessageBoxIcon.Error);
}
}
错误发生在 odoc.SaveAs 行上,但仅在从 Windows 10 计算机运行时发生。最初,我使用了我机器上的互操作,但后来将其更改为 NuGet 互操作,但这并没有解决问题。我尝试将 Embed Interop Types 更改为 False 但这并没有解决任何问题,因此我将其改回。互操作引用的别名属性是全局的,特定版本属性是 True。由于富文本,我担心更改文档编写器的类型。应用程序的其余部分对于 Windows 10 用户来说运行良好。有什么想法吗?
解决方法
OpenXML 没有成功,因为它不允许我正确添加标题或导出为 PDF。尽管我非常希望使用 OpenXML,但我最终还是回到了 Word Interop。我能够通过如下设置参考属性来解决这个问题:
嵌入互操作类型 = False 复制本地 = True
现在无论哪个操作系统运行程序,保存都有效。我有上面的部分答案,但忽略了 Copy Local = true 部分。
How to fix "远程计算机需要网络级别身份验证" when using mstsc on XP
新建一个名为fix.reg的文本文件,在其中添加如下内容,保存之后双击导入到注册表中,然后重启xp之后,就可以使用mstsc连接到远程桌面了。
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders]
"SecurityProviders"="msapsspc.dll, schannel.dll, digest.dll, msnsspc.dll, credssp.dll"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"Security Packages"=hex(7):6b,00,65,00,72,00,62,00,65,00,72,00,6f,00,73,00,00,\
00,6d,00,73,00,76,00,31,00,5f,00,30,00,00,00,73,00,63,00,68,00,61,00,6e,00,\
6e,00,65,00,6c,00,00,00,77,00,64,00,69,00,67,00,65,00,73,00,74,00,00,00,74,\
00,73,00,70,00,6b,00,67,00,00,00,00,00
关于“网络级别身份验证”请看http://technet.microsoft.com/zh-cn/library/cc732713.aspx。
我们以上两个注册表项的意思就是在windows xp SP3上配置了CredSSP(Credential Security Support Provider)。
CredSSP 是一个新安全支持提供程序 (SSP) 可用于 Windows XP SP3 中使用安全支持提供程序接口 (SSPI)。CredSSP 使程序可以使用客户端的 SSP,从客户端计算机的用户凭据委派到目标服务器。(对目标服务器进行访问通过使用服务器端 SSP)。Windows XP SP3 涉及到客户端的 SSP 实现。客户端的 SSP 实现当前正在使用的远程桌面协议 (RDP) 6.1 终端服务 (TS)。但是,客户端的 SSP 实现可由愿意使用客户端的 SSP 与进行交互程序正在运行服务器端 SSP 实现 Windows Vista 中,或在 Windows Server 2008 中的任何第三方程序。
Linux/Wine:windows 应用程序启动 windows 控制台命令并在 windows 上等待时在 linux 上不等待:如何修复?
如何解决Linux/Wine:windows 应用程序启动 windows 控制台命令并在 windows 上等待时在 linux 上不等待:如何修复??
除了一项功能外,我还使用 Wine 成功运行了 Windows 程序。该程序可以设置为在 texlive 发行版中启动 pdflatex,当它启动时,它等待查看结果是否成功,然后复制/移动文件。但是在 Linux 上,我无法安排它像在 Windows 上那样等待 pdflatex 完成,因此过早地复制/移动文件并且 pdflatex 无法找到它们。
有一个对话框可以用来保存任意命令,当我按下应用程序中的 pdflatex 按钮时,该命令将被执行。我将此对话框指向 Windows 上的 C:\texlive\2020\bin\win32\pdflatex.exe 并且它可以工作。除了不等待的问题外,我成功地放置了这个命令,以便在Linux上使用wine运行pdflatex。
Z:/usr/bin/gnome-terminal --wait -- /home/nonnull/bin/runlatex/runlatex.sh "%f"
通过将 runlatex.sh 中的最后一个命令设为 exec /bin/bash
,终端保持打开状态,因此我可以看到 pdflatex 的所有输出,并知道它正在使用 runlatex.sh 必须找出的正确文件运行通过将传递给它的 Windows 路径转换为其实际路径。 pdflatex 以各种方式抱怨它在那里创建的文件,然后在运行期间不存在。即使终端是打开的,所以没有完成执行,应用程序抱怨 pdflatex 没有正确完成,甚至在 pdflatex 的输出文本完成向下滚动终端之前。当我省略 exec 时,应用程序的行为不会改变终端立即关闭时的命令 pdflatex 完成。
Wine 是怎么回事,命令在完成运行之前不会保持附加状态?我该怎么办?对可以绕过这个困难的命令或机制有什么建议吗?如果需要的话,我准备编写一个 win32 程序来进行调解。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
MariaDB docker 从主机 Windows 10 和 Linux 访问 更新您的命令以在 Ubuntu 系统中的 docker 中运行 mysql:在 Windows 和 Linux 中检查 WSL 网络适配器的 IPv4 地址从windows连接到linux服务器Linux 上的 Docker 与 Windows 上的对比
如何解决MariaDB docker 从主机 Windows 10 和 Linux 访问 更新您的命令以在 Ubuntu 系统中的 docker 中运行 mysql:在 Windows 和 Linux 中检查 WSL 网络适配器的 IPv4 地址从windows连接到linux服务器Linux 上的 Docker 与 Windows 上的对比
事实证明,下面询问的 Docker/Windows 问题的原因是我这边的 Hyper-V 的本地网络问题。所以它与 Windows 和 Linux 上的 Docker 之间的区别无关,也与 MariaDB 没有任何关系。我想删除这个问题,但不鼓励这样做,因为它已经有了答案。
我是 docker 新手,但不是 MysqL 的新手。我想在 Docker 中使用 MariaDB。我在 Windows 10 和 Ubuntu 上都安装了 Docker。
对于 MariaDB 容器,我遵循了此处的描述 https://mariadb.com/kb/en/installing-and-using-mariadb-via-docker/,因为它似乎比此更准确:https://hub.docker.com/_/mariadb。
我使用以下方法创建了一个 MariaDB 容器:
docker run --name mariadb -e MysqL_ROOT_PASSWORD=test -d mariadb:latest
“最新”拉取了 MariaDB 服务器 10.5.8。
我确认在 my.cnf 中启用了通过端口 3306 的 tcp 访问
[client-server]
port=3306
从容器内部运行 MysqL 客户端是可行的
docker exec -it MariaDB MysqL -u root -p
从主机运行 MysqL 客户端
MysqL -h 172.17.0.2 -u root -p
适用于我的 Ubuntu 主机,但不适用于我的 Windows 10 主机。在 Windows 上,该命令会在一段时间后返回,没有任何消息。
你能告诉我原因并帮助我吗?
解决方法
更新您的命令以在 Ubuntu 系统中的 docker 中运行 mysql:
docker run --name mariadb -e MYSQL_ROOT_PASSWORD=test -d mariadb:latest --port 3306:3306
在 Windows 和 Linux 中检查 WSL 网络适配器的 IPv4 地址
打开powershell并执行ifconfig
命令,然后找到WSL网络适配器:
Ethernet adapter vEthernet (WSL):
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::e96c:c3d6:464e:2a3b%72
IPv4 Address. . . . . . . . . . . : 172.20.240.1
Subnet Mask . . . . . . . . . . . : 255.255.240.0
Default Gateway . . . . . . . . . :
您的 Windows IP 是 172.20.240.1
现在使用 ip a
命令找出 Linux 主机 IP,并查看与 Windows 相同网络中的 IP:
5: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:ce:28:8e brd ff:ff:ff:ff:ff:ff
inet 172.20.252.177/20 brd 172.20.255.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::215:5dff:fece:288e/64 scope link
valid_lft forever preferred_lft forever
从windows连接到linux服务器
mysql -u root -h 172.20.252.177 -P 3306 -p
Linux 上的 Docker 与 Windows 上的对比
在 Linux 上,docker 在您的系统中以本机方式工作。没有适用于 Windows 的官方 docker 版本。这意味着您需要在 Windows(以及 MacOS)中模拟 linux 机器并在那里运行 docker 守护进程。
当您模拟 linux 时,虚拟机管理程序会为您的模拟系统创建新网络,因此 docker 不在本地主机上运行。
作为用户的主要区别在于,您无法像 localhost 一样访问在 docker 中运行的应用程序,因为它运行在具有自己网络 IP 的 VM 中。
另一个区别是资源可用性。 在 linux docker deamon 可以访问您的所有资源(CPU、内存、硬盘、网络等)。当然,您可以为其创建配额,但目前不关心。
在 Windows 中,您运行 VM 并将一些有限的资源分配给模拟的 Linux。例如 20 GB 硬盘、1vCPU 和 2GB 内存。这对于您的应用程序的性能很重要。它们在 Windows 中会比在 Linux 中慢(如果需要更多资源)。
但是当我在 Windows 上工作时。我喜欢它,因为我可以创建 docker VM 的快照,并且可以将其复制到另一台计算机。这很神奇,因为您在安装或更换计算机时无需配置系统。
今天关于windows – mstsc.exe的热键是什么?和windows热键大全的介绍到此结束,谢谢您的阅读,有关C# windows 窗体应用程序 Word Interop 适用于 Windows 7 但不适用于 Windows 10、How to fix "远程计算机需要网络级别身份验证" when using mstsc on XP、Linux/Wine:windows 应用程序启动 windows 控制台命令并在 windows 上等待时在 linux 上不等待:如何修复?、MariaDB docker 从主机 Windows 10 和 Linux 访问 更新您的命令以在 Ubuntu 系统中的 docker 中运行 mysql:在 Windows 和 Linux 中检查 WSL 网络适配器的 IPv4 地址从windows连接到linux服务器Linux 上的 Docker 与 Windows 上的对比等更多相关知识的信息可以在本站进行查询。
本文标签: