[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 271
  • Last Modified:

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...
0
sirbounty
Asked:
sirbounty
  • 3
1 Solution
 
ColosseoCommented:
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now