Open Folders Anywhere

I've been trying to make a program that runs off my external drive which asks for a selection and then a password to certain folders on the drive. The code used for the ones with a password are:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if(menu_option=="movies"||menu_option=="Movies")
    {
        cout << "Password Required\nPassword: ";
        string movies_pass;
        cin >> movies_pass;
        if(movies_pass=="test")
        {
            cout << "Access Granted\n";
            system("explorer /Master/Movies"); //problem here
            delay();

        }
        else
        {
            cout << "Incorrect Password.\n\n";
            delay();
        }
    }

But when ever this option is selected, or any, and the password is correct; it either doesn't open any folder or it opens the C:/ which is where the folder is NOT located. The folders and code are running off the external hard drive. Any help on fixing this? Thanks
You should read Microsoft article about windows explorer command line arguments:
http://support.microsoft.com/kb/152457


Also, I'd use ShellExecute instead of system() here.
I'll have a read of it, thanks. I've never used ShellExecute, mind explaining it?
http://msdn.microsoft.com/en-gb/library/windows/desktop/bb762153(v=vs.85).aspx

i've used it in the past to open notepad with our software's logfile.
Topic archived. No new replies allowed.