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

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


You can use hidden focus:

Shell strCommand, vbHide

or

Shell strCommand, 0

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