Vbhide is hidden. For example, me. vbhide is used to hide the current window.
Can be used as a shell command parameter, such
Shell "test.exe", vbhide
When test.exe is used by the consumer, it is not displayed, but executed in the background.
Shell "notepad.exe" if you don't believe it. Check vbhide and click notepad.
For details about the VB shell "cmd" command, such as \ c, \ K, and null, I will use it to open shared \ 192.168.0.5 \ D $. How can I write it? Thank you!
Set wshshell = wscript. Createobject ("wscript. Shell ")
Wshshell. Run ("CMD/C start \ 192.168.0.5 \ D $ ")
VB shell calls cmd. If the command is completed, close the window. txt.
If this parameter is not disabled, you can write it as follows:
Shell "CMD/K dir", vbnormalfocus
CMD/k indicates that the window is retained when the subsequent commands are executed, And/C indicates that the window is closed.
/Indicates the option. You can enter CMD/in the command line /? See:
/C: Execute the specified command in the string and then terminate the command.
/K executes the specified string command but retains
/S modify string processing after/C or/K (see below)
/Q close response
/D stop executing the autorun command from the Registry (see below)
/A converts the output to an internal pipeline or file command to ANSI
/U converts the output to an internal pipeline or file command to Unicode