问题描述
您好
我正在使用一个正确运行的批处理脚本,我正在使用OpenFileDialog(和FolderBrowserDialog),因此这些命令只能通过执行批处理文件来运行。但是当我尝试从visual studio运行批处理文件时,它就像它无法识别OpenFileDialog
(和FolderBrowserDialog),因为没有更多的Windows可以选择我的.exe或我的文件夹。它只是做什么。
目前我正在使用命令:
Im using a batch script which run correctly and im using OpenFileDialog (and FolderBrowserDialog), so those command worked just by executing the batch file. But when i try to run the batch file from visual studio it's like it doesn't recognise OpenFileDialog (and FolderBrowserDialog) because there aint no more Windows to select my .exe or my folders. It just do Nothing.
For the moment I am using the command :
Process.Start(@" C:\ MyFolders \ MyBatch) .bat");
Process.Start(@"C:\MyFolders\MyBatch.bat");
因此CMD正在启动,而"回声"则是工作原因我可以看到一些消息,但不能看到应该用OpenFileDialog打开的Windows ...
So the CMD is launch and the "echo" worked cause i can see some messages but not the Windows which should open with OpenFileDialog…
有什么想法吗?
对于语言的错误感到抱歉,但是我希望英语中的答案比FRench更多... :)
Sorry for the faults of languages, but i hope that there will be more answers in English than in FRench… :)
推荐答案
可以像错误的文件夹一样简单
Can be as simple as a wrong folder
这篇关于Visual Studio和批处理(OpenFileDialog)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!