您现在的位置是:主页 > news > 同城手机网站开发/关键词优化报价查询
同城手机网站开发/关键词优化报价查询
admin2025/6/24 22:33:45【news】
简介同城手机网站开发,关键词优化报价查询,移动门户网站建设特点,网站在别人那里已经建好了_公司里要进行修改_怎么做以下代码是我VB6程序的一部分我在VB中使用了shell命令,以便使用标志和参数执行pscp.exe我的问题是,当VB运行行时:Shell strCommand, 1它也打开CMD窗口2-4秒(CMD弹出窗口)我的问题 – 是否可以运行“Shell strCommand 1”,CMD窗口不会打开?我的意思是 – …
以下代码是我VB6程序的一部分
我在VB中使用了shell命令,以便使用标志和参数执行pscp.exe
我的问题是,当VB运行行时:
Shell strCommand, 1
它也打开CMD窗口2-4秒(CMD弹出窗口)
我的问题 – 是否可以运行“Shell strCommand 1”,CMD窗口不会打开?
我的意思是 – 当我运行VB应用程序时,我不想看到任何CMD弹出窗口
Const cstrSftp As String = "D:\pscp.exe"
Dim strCommand As String
Dim pUser As String
Dim pPass As String
Dim pHost As String
Dim pFile As String
Dim pRemotePath As String
pUser = "root"
pPass = "pass123"
pHost = "110.218.201.15"
pFile = """D:\scan_ip.ksh"""
pRemotePath = "/var/tmp"
strCommand = cstrSftp & " -sftp -l " & pUser & " -pw " & pPass & " " & pHost & ":" & pRemotePath & " " & pFile
Shell strCommand, 1