在VB 2005中使用命令行参数运行EXE [英] Running a EXE with command line parameters in VB 2005
问题描述
嗨大家好,我试图让VB用以下命令行运行regedit.exe函数
regedit.exe /EC:\VB.txt&\"KEYEY_LOCAL_MACHINE \\ \\软件\ Aberlink 3D"
有人有什么想法吗?我遇到的问题是让VB 2005导出一个完整的子密钥,而不是一次只导出一个值。我是否使用regedit沿着正确的路线行驶,或者.net中是否有一个功能可以为我做这个?
提前谢谢
Ben
检查Process类。
它需要一个文件名和参数
还有一个Registry类用于编辑注册表设置虽然
干杯Plater,但我一直在使用进程类,它不喜欢和参数在.exe之后也是使用注册表类但没有导出部分注册表的功能:(
干杯普拉特,但我一直在使用进程类,它不喜欢和参数后.exe我也玩注册表类,但没有一个功能来导出注册表的一部分:(
你的代码对于参数等是什么样的?
Hi Guys, im trying to get VB to run the regedit.exe function with the following command line
regedit.exe /E C:\VB.txt "HKEY_LOCAL_MACHINE\Software\Aberlink 3D"
Anybody have any ideas? The problem i have is getting VB 2005 to export an entire subkey rather than just one value at a time. Am i going down the right route with using regedit or is there a function within .net that will do this for me?
Thanks in advance
Ben解决方案Check the Process class.
It will take a filename and arguments
There is also a Registry class for editing the Registry settings though
Cheers Plater, but ive been using the process class and it doesn''t like and parameters after the .exe ive also played with the registry class but there isnt a function to export a part of the registry :(
Cheers Plater, but ive been using the process class and it doesn''t like and parameters after the .exe ive also played with the registry class but there isnt a function to export a part of the registry :(What does your code look like for the arguments and the like?
这篇关于在VB 2005中使用命令行参数运行EXE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!