|
-
Jul 1st, 2000, 09:36 AM
#1
Thread Starter
Fanatic Member
hi,
does anyone know the shell command to access network neighborhood
shell "what goes here"
OR ANY OTHER SUGGESTIONS
Cheers
Merlin ?
__________________
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
[ Galahtech.com] | [ My Site] | [ Fishsponge] | [ UnixForum.co.uk]
-
Jul 1st, 2000, 12:25 PM
#2
_______
..doubt this is it...
Maybe you are looking for one ahead of this one..I can't find it...I have almost every shell for windows but I
don't have the one for the dialog box that prerequisits this particular one...maybe you may have a use for it somewhere so I'll post it anyway...
Shell "rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl"
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jul 1st, 2000, 03:16 PM
#3
_______
<< maybe >>
'you can get to it this way as well...not sure what you do with
'it when you get it but this brings it up....
IE...don't ask me anything about this I got if off anther
Q & A search and tried it and it brings up the dialog box.
'use sub Main as startup
Public Declare Sub CoTaskMemFree Lib "ole32.dll" (ByVal pv As Long)
Public Declare Function SHBrowseForFolder Lib "shell32.dll" _
Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As Long
'Converts an item identifier list to a file system path.
Public Declare Function SHGetPathFromIDList Lib "shell32.dll" _
Alias "SHGetPathFromIDListA" _
(ByVal pidl As Long, _
ByVal pszPath As String) As Long
'parameters for SHBrowseForFolder
Public Type BROWSEINFO 'BI
hOwner As Long
pidlRoot As Long
pszDisplayName As String
lpszTitle As String
ulFlags As Long
lpfn As Long
lParam As Long
iImage As Long
End Type
Public Const CSIDL_NETWORK = &H12 'Network Neighborhood
Public Const MAX_PATH = 260
Public Sub Main()
Dim BIF_FLAGS As Long
Dim sTitle As String
Dim lReturn
lReturn = Browse(BIF_FLAGS, "Network Neighborhood")
End Sub
Private Function Browse(BIF_FLAGS As Long, sTitle As String) As String
Dim pidl As Long
Dim BI As BROWSEINFO
Dim sPath As String
Dim pos As Integer
With BI
.hOwner = hWnd
.pidlRoot = CSIDL_NETWORK
.lpszTitle = "Browsing " & sTitle
.ulFlags = BIF_FLAGS
.pszDisplayName = Space$(MAX_PATH)
End With
pidl = SHBrowseForFolder(BI)
sPath = Space$(MAX_PATH)
If SHGetPathFromIDList(ByVal pidl, ByVal sPath) Then
pos = InStr(sPath, Chr$(0))
If pos Then Browse = Left(sPath, pos - 1)
Else: Browse = ""
Text3 = ""
End If
pos = InStr(BI.pszDisplayName, Chr$(0))
If pos Then Text3 = Left(BI.pszDisplayName, pos - 1)
Call CoTaskMemFree(pidl)
End Function
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jul 2nd, 2000, 02:42 AM
#4
Thread Starter
Fanatic Member
hi,
thanks i have just tried it but unfourtunateley is doesn't work
any other suggestions anybody ?
Merlin ?
Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
-- Linus Torvalds
[ Galahtech.com] | [ My Site] | [ Fishsponge] | [ UnixForum.co.uk]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|