Jump to content

vb getfolder not working properly in vista pe


Recommended Posts

hi,

I have this bit of vb code...

Private Sub MountB_Click()

MountPath.Text = GetFolder(Me.hWnd, "ÇëÑ¡Ôñ WIM ¾µÏñ¹ÒÔصÄĿ¼")

End Sub

and it does not seem to work properly within vista pe winpe 2. Works fine in XP and 2003 but just opens an blank explorer window.

I am new to all the vb thing so please be gentle

the last bit is in chinese PAR

Link to comment
Share on other sites


i first posted a VBS example, then realised you were using normal VB, but i'm putting it back.

either way, that GetFolder statement is strange looking.

GetFolder returns a folder object which contains various properties/methods.

here's a VB example:

http://support.microsoft.com/kb/186118

and here's a short VBS example:

http://devguru.com/technologies/vbscript/q..._getfolder.html

(even though it's in VBS it should be similar enough for you to understand)

Edited by #rootworm
Link to comment
Share on other sites

Many Thanks for the reply rootworm.

I am taking this into work for how i put this nicly ah yeah our resident code geek to have a look.

He prob tell me I am being a biff or something.

again many thanks and I will post back with my findings

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...