Solved

Quick one on FSO

Posted on 2004-08-12
4
266 Views
Last Modified: 2010-05-02
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
Comment
Question by:sirbounty
  • 3
4 Comments
 
LVL 15

Accepted Solution

by:
Colosseo earned 125 total points
ID: 11782851
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
 
LVL 15

Expert Comment

by:Colosseo
ID: 11782883
btw I know you said you didnt want to use Shell, just saying thats the only way I can think of :)

Scott
0
 
LVL 67

Author Comment

by:sirbounty
ID: 11783016
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
 
LVL 15

Expert Comment

by:Colosseo
ID: 11788551
No bother glad to help :)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question