How do I open a Network location using C++?

Panarchy's Avatar, Join Date: Nov 2007
Contributor
Hello

Just having some trouble opening a Network location with the ShellExecute() call.

I've tried opening the Share using the ShellExecute() call, however, it didn't work;

ShellExecute(NULL, TEXT("open"), TEXT("explorer"), TEXT("\\panarchy\\share"), NULL, SW_HIDE);

Please tell me a method of opening the network share (in explorer) with C++.

Thanks in advance,

Panarchy

PS: Please make sure that whichever method you suggest to me, can be run without launching a command-prompt window.
Panarchy's Avatar, Join Date: Nov 2007
Contributor
Hello

Joske solved it for me, see below;
Code:
ShellExecute(NULL, "explore", "\\\\panarchy\\share", NULL, NULL, SW_SHOWNORMAL);
Panarchy