how do u open a folder?

This is a discussion on how do u open a folder? within the C++ Programming forums, part of the General Programming Boards category; How do you open a folder using c++ i can open an exe file using the following but i cant ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,592
    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, 12:26 AM
  2. file doesn't open
    By jmoney in forum C Programming
    Replies: 6
    Last Post: 02-24-2003, 01: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21