如何在c#中禁止保存对话框 [英] How to suppress the save dialog box in c#

查看:68
本文介绍了如何在c#中禁止保存对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须通过c#代码运行.msi文件并生成mst文件。我需要在后端保存.mst文件。我可以获得保存对话框,但它应该在没有用户界面的情况下自动保存



我们可以在自动脚本中执行相同的功能。



i have to run a .msi file through c# code and it generate the mst file. I need to save the .mst file in back end. I can get the save dialog box , but it should save automatically without the user interface

We can do the same functionality in autoit script.

WinWait("Save Transform")
WinActivate("Save Transform")
ControlSetText ("Save Transform", "","Edit1", $strMSTNamewithFullPath )
Send("{Enter}")





i希望在c#中做同样的事情。



请协助。



i want to do the same in c# .

Please assist.

推荐答案

strMSTNamewithFullPath)
发送( {Enter}
strMSTNamewithFullPath ) Send("{Enter}")





i希望在c#中做同样的事情。



请协助。



i want to do the same in c# .

Please assist.


这篇关于如何在c#中禁止保存对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆