Page 1 of 1

how to list (possible) Network Resource ?

Posted: Wed Nov 03, 2021 8:14 am
by AUGE_OHR
hi,

when call "WNetConnectionDialog" i can assign UNC Path to Drive-Letter

Code: Select all

FUNCTION NetConnect()
LOCAL nHandle := GetActiveWindow()
RETURN HMG_CallDLL( "Mpr.dll", DLL_OSAPI, "WNetConnectionDialog", nHandle, RESOURCETYPE_DISK )
Question : how to get "next Dialog" when press "search" for Resource in Network :!:
Get_UNV_Path.JPG
Get_UNV_Path.JPG (50.86 KiB) Viewed 619 times

Re: how to list (possible) Network Resource ?

Posted: Wed Nov 03, 2021 5:18 pm
by andyglezl
Maybe this can help, I just read it I haven't tried it ...

https://stackoverflow.com/questions/587 ... monitoring



With PowerShell...
imagen_2021-11-03_121237.png
imagen_2021-11-03_121237.png (163.42 KiB) Viewed 565 times
.
.
imagen_2021-11-03_122914.png
imagen_2021-11-03_122914.png (25.72 KiB) Viewed 562 times
.
.
Doing it from CMD ...
imagen_2021-11-03_125522.png
imagen_2021-11-03_125522.png (17.87 KiB) Viewed 562 times
.
.
.
O te refieres solo a esto...
*--------------------------------------
Or do you mean just this ...

cFolder := GetFolder( "cTitle", "C:\", , .T., .F., CSIDL_NETWORK, BIF_RETURNONLYFSDIRS )

.
.
imagen_2021-11-03_162137.png
imagen_2021-11-03_162137.png (8.33 KiB) Viewed 549 times

Re: how to list (possible) Network Resource ?

Posted: Thu Nov 04, 2021 1:38 am
by AUGE_OHR
hi,
andyglezl wrote: Wed Nov 03, 2021 5:18 pm Or do you mean just this ...

Code: Select all

cFolder := GetFolder( "cTitle", "C:\", , .T., .F., CSIDL_NETWORK, BIF_RETURNONLYFSDIRS )[
YES, thats it, THX :D