在VB 2005中使用命令行参数运行EXE

编程入门 行业动态 更新时间:2024-10-27 17:23:51
本文介绍了在VB 2005中使用命令行参数运行EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨大家好,我试图让VB用以下命令行运行regedit.exe函数 regedit.exe /EC:\VB.txt&\"KEYEY_LOCAL_MACHINE \\ \\软件\ Aberlink 3D" 有人有什么想法吗?我遇到的问题是让VB 2005导出一个完整的子密钥,而不是一次只导出一个值。我是否使用regedit沿着正确的路线行驶,或者中是否有一个功能可以为我做这个? 提前谢谢 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 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

本文发布于:2023-10-14 12:22:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1491047.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:命令行   参数   VB   EXE

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!