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
Solved

Easy question.

Posted on 2000-03-02
2
200 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 42
has77  challenge 9 88
tripleUp challenge 7 86
Problem to App source 6 70
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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

809 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