我想在VB6中调用以下命令行。我怎么称呼这个:
hh.exe "ms-its:c:/Program Files (x86)/GST/Timken Syber Program/TimkenAnalysisHelp.chm::/01_Quick_Start_Guide/quickstart_initial_program_setup.htm"
答案 0 :(得分:1)
要调用命令行,请使用 Shell :
Shell "notepad.exe", vbNormalFocus
如果有引号,请通过提供两次来对其进行编码:
Shell "notepad.exe ""Test.txt""", vbNormalFocus
我无法测试您的命令行,因为它包含我没有的东西和位置,但可能以下情况应该有效:
Shell "hh.exe ""ms-its:c:/Program Files (x86)/GST/Timken Syber Program" & _
"/TimkenAnalysisHelp.chm::/01_Quick_Start_Guide/quickstart_initial_program_setup.htm""", _
vbNormalFocus