how do u open a folder?
How do you open a folder using c++ i can open an exe file using the following but i cant workout how to open a specific folder. i.e c:\nic
case 6: WinExec("control.exe date/time",SW_MAXIMIZE);
would you have to change WinExec to something else or leave it as it is. i have tried WinRun even open but it says i have to declare them as variables.
also if i put case 6: WinExec("A:\",SW_MAXIMIZE);
it reads the a drive but dosent open it. which is very strange
I'm not sure what you mean by opening a folder, or what you want to do with an open folder, but you could look at SetCurrentDirectory() in windows.h, or chdir() in direct.h.
Just a thought.....when you say "open a folder" do you mean the same as say clicking on My Computer? An explorer window?
If so try this;
Running the path as an argument to explorer.exe will open an explorer window to that dir....
Also, dont forget the extra ' \ ' as it will class a single ' \ ' as an escape char....
Hope it helps....
thanx fordy it worked:) cheers