Solved

Easy question.

Posted on 2000-03-02
2
206 Views
Last Modified: 2013-11-20
Why is it that I have to put two back slashes when passing directories to a VC program. Example.

This works

ShellExecute(NULL,"open","NOTEPAD.EXE",NULL,
"C:\\WINDOWS\\",SW_NORMAL);

but this does not

ShellExecute(NULL,"open","NOTEPAD.EXE",NULL,
"C:\WINDOWS\",SW_NORMAL);

Just wondering.
0
Comment
Question by:lgalma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
mnewton022700 earned 10 total points
ID: 2578055
The '\' character is used to denote a special character. For example '\n' is a new line, while '\t' is a TAB. Writing '\\' actually represents just a '\' character. So the second code piece will not because '\W' and '\"'
are not recognised characters.
0
 

Author Comment

by:lgalma
ID: 2578093
cool , thank you..
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 244
Excel Use VBA to get user's Mac Address for their computer 5 336
viewing source code from eclipse 13 110
sum28 challenge 31 117
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question