Hello

I got it to work pretty much perfectly now!



Code:
#include <windows.h>

int APIENTRY WinMain(HINSTANCE hinstance, HINSTANCE hprevious, LPSTR cmdline, int cmdshow) {
ShellExecute(NULL, TEXT("open"), TEXT("explorer"), TEXT("\\Panarchy\\share"), NULL, SW_HIDE);
ShellExecute(NULL, TEXT("open"), TEXT("diskmgmt.msc"), NULL, NULL, SW_HIDE);
        return 0;
}
If you could just tell me how to stop the command-prompt window from appearing at the start of the program, then the program would be complete!

Thanks in advance,

Panarchy

PS: Still don't know how to add an icon to it within Code::Blocks... would appreciate advice on how to do this.

Last edited by Panarchy; 22Apr2009 at 12:20..