how to list (possible) Network Resource ?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

how to list (possible) Network Resource ?

Post 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 617 times
have fun
Jimmy
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: how to list (possible) Network Resource ?

Post 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 563 times
.
.
imagen_2021-11-03_122914.png
imagen_2021-11-03_122914.png (25.72 KiB) Viewed 560 times
.
.
Doing it from CMD ...
imagen_2021-11-03_125522.png
imagen_2021-11-03_125522.png (17.87 KiB) Viewed 560 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 547 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: how to list (possible) Network Resource ?

Post 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
have fun
Jimmy
Post Reply