Thread: how do u open a folder?

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    3

    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:\

    case 6:WinExec("control.exe date/time",SW_MAXIMIZE);
    break;

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    To open "c:\", write it as "c:\\"

    You need \\ in the source code to get a single \ in the program.

  3. #3
    Registered User ski6ski's Avatar
    Join Date
    Aug 2001
    Posts
    133
    They are called escape sequence.
    Here is a list of some of them:
    \n New Line
    \t Horizontal tab
    \v Vertical tab
    \b Backspace
    \r Carriage return
    \f Form feed
    \a Allert
    \\ Backslash
    \\' Single quote
    \" Double quote
    \0 Null character
    C++ Is Powerful
    I use C++
    There fore I am Powerful

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open Watcom CreateThread pointer parameter problems, m'kay?
    By Mad_guy in forum Windows Programming
    Replies: 2
    Last Post: 11-06-2005, 01:26 AM
  2. file doesn't open
    By jmoney in forum C Programming
    Replies: 6
    Last Post: 02-24-2003, 02:39 PM
  3. Problems with open and save boxes
    By pinkcheese in forum Windows Programming
    Replies: 3
    Last Post: 05-21-2002, 06:03 PM
  4. Programmatically open a Windows Folder
    By Shaman in forum Windows Programming
    Replies: 4
    Last Post: 09-25-2001, 03:39 PM
  5. Invoking MSWord
    By Donn in forum C Programming
    Replies: 21
    Last Post: 09-08-2001, 04:08 PM