It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum Script-archive

open My Documents in explorer window when a button is click

Share your completed scripts.

Moderator: dafunkymunky

open My Documents in explorer window when a button is click

Postby chubzyko on Wed Aug 27, 2008 5:38 pm

haiya guys! lately i was trying to find out how to open My Documents or other folder in an explorer window if I clicked a button in a vb form. And here's the code that I got. Just want to share it with you.


Code: Select all
lngReturnValue = shell("explorer.exe ""C:\Documents and Settings\Administrator\My Documents""", vbNormalfocus)
"Failure is the key to success, so try and try until you succeed."
User avatar
chubzyko
100+ Club
 
Posts: 104
Joined: Wed Jul 30, 2008 10:48 pm
Location: Marikina City, Philippines

Who is online

Users browsing this forum: No registered users and 1 guest