Hello

Very simple problem I have here.

If network share is found, open it in explorer. Else open LocalFolder1. If LocalFolder1 isn't found, open LocalFolder2.

Current code;

Code:
#include <windows.h>
#include <tchar.h>
#include <iostream>

int APIENTRY WinMain(HINSTANCE hinstance, HINSTANCE hprevious, LPSTR cmdline, int cmdshow) {

	ShellExecute(NULL, "explore", "\\\\panarchy\\share", NULL, NULL, SW_SHOWNORMAL);

	return 0;
}
Please tell me how to use Programming Controllers within the above code.

Thanks in advance,

Panarchy

Last edited by Panarchy; 1May2009 at 04:48..