[dba-VB] VB6 Shell

Michael Maddison michael at ddisolutions.com.au
Tue Nov 16 16:06:08 CST 2004


Looks like VB doesn't know what to do with the environment variable.
You will need to explicitly state the full path.

Google ShellExecute and you will be much happier...

cheers

Michael M 



Do any VB6 programmers know how to use the shell to run a systems app
such as explorer?  The "target" was copied from my desktop shortcut but
doesn't work - I must be missing some syntax???

Private Sub Command1_Click()
   RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub

Thanks,
Bill Kollodge
Electrical Engineering / CNC Products
Park Industries
St. Cloud, MN  56303
bkollodge at parkindustries.com

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com




More information about the dba-VB mailing list