[dba-VB] VB6 Shell

Jim Lawrence (AccessD) accessd at shaw.ca
Tue Nov 16 15:58:23 CST 2004


Hi Bill:

Why not try something like this:

Call ShellExecute(0&, "Open", "explorer.exe", "/e,/n,c:\", 0&,
SW_SHOWNORMAL)

HTH
Jim

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of
bkollodge at parkindustries.com
Sent: Tuesday, November 16, 2004 1:43 PM
To: dba-vb at databaseadvisors.com
Subject: [dba-VB] VB6 Shell


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