How to run a shell command without opening a CMD window in VB6

后端 未结 1 1482
孤街浪徒
孤街浪徒 2021-01-11 13:50

the following code is part from my VB6 program

I used shell command in the VB in order to execute the pscp.exe with the flags and arguments

my problem is ,

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-11 14:27

    You can use hidden focus:

    Shell strCommand, vbHide
    

    or

    Shell strCommand, 0
    

    For other focus types look Here or http://msdn.microsoft.com/en-us/library/aa242087%28v=VS.60%29.aspx (thanks to MarkJ for the link)

    0 讨论(0)
提交回复
热议问题