Quick one on FSO

Using this:
        Set objFSO = New FileSystemObject
        Set objuser = GetObject("WinNT://myDC/" & txtInfo(2).Text & ",user")
        strSrcPath = objuser.homedirectory

How do I bring up an explorer window to strSrcPath's UNC?
(equivalent to performing Start->Run->\\Server\objUser)

I know I could shell a start command, but I don't want that route...
LVL 67
sirbountyAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ColosseoConnect With a Mentor Commented:
Hi sirbounty

The only way I can think that you will get this to work is

Set oShell = CreateObject("WScript.Shell")

oShell.Run strSrcPath

Set oShell = Nothing

Regards

Scott
0
 
ColosseoCommented:
btw I know you said you didnt want to use Shell, just saying thats the only way I can think of :)

Scott
0
 
sirbountyAuthor Commented:
Good enough sir - btw, I meant the other shell...I'm not as familiar with Wsh, so I wasn't thinking wscript shell... - thanx.
0
 
ColosseoCommented:
No bother glad to help :)
0
All Courses

From novice to tech pro — start learning today.