473,721 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

without escape character

The string in registry is
"rundll32.e xe C:\Program Files\INTERN~1\ hmmapi.dll,Open InboxHandler"
After opensubkey and getregistry, I got
"rundll32.e xe \"C:\\Progra m Files\\INTERN~1 \\hmmapi.dll\", OpenInboxHandle r"

Is there anyway I can get the string exactly in registry without escape
character?
Nov 16 '05 #1
3 2610
I assume you are looking at this value in the debugger.

you ARE getting the value without the escape characters. The debugger puts
in the escape characters when it shows you the value. It's a display thing
that doesn't affect the value actually stored.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Steve" <St***@discussi ons.microsoft.c om> wrote in message
news:2C******** *************** ***********@mic rosoft.com...
The string in registry is
"rundll32.e xe C:\Program Files\INTERN~1\ hmmapi.dll,Open InboxHandler"
After opensubkey and getregistry, I got
"rundll32.e xe \"C:\\Progra m Files\\INTERN~1 \\hmmapi.dll\", OpenInboxHandle r"
Is there anyway I can get the string exactly in registry without escape
character?

Nov 16 '05 #2
Yes, I saw it from the debugger, my purpose is separate exe file and
parameter.
I used
launch_iexplore r = "\"C:\\Prog ram Files\\Internet Explorer\\iexpl ore.exe\"
-nohome" (get from the registry)
Regex r = new Regex(".exe"); // Split on .exe
string[] s = r.Split(launch_ iexplorer);

I got
s[0]="\"C:\\Prog ram Files\\Internet Explorer\\iexpl ore"
s[1]="\" -nohome"
what I want is
s[0]="\"C:\\Prog ram Files\\Internet Explorer\\iexpl ore.exe\"
s[1]="-nohome"

"Nick Malik [Microsoft]" wrote:
I assume you are looking at this value in the debugger.

you ARE getting the value without the escape characters. The debugger puts
in the escape characters when it shows you the value. It's a display thing
that doesn't affect the value actually stored.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Steve" <St***@discussi ons.microsoft.c om> wrote in message
news:2C******** *************** ***********@mic rosoft.com...
The string in registry is
"rundll32.e xe C:\Program Files\INTERN~1\ hmmapi.dll,Open InboxHandler"
After opensubkey and getregistry, I got
"rundll32.e xe \"C:\\Progra m

Files\\INTERN~1 \\hmmapi.dll\", OpenInboxHandle r"

Is there anyway I can get the string exactly in registry without escape
character?


Nov 16 '05 #3
I'm going to suggest that you get a hold of the Regular Expression Workbench
from GotDotNet. Using Split in the way that you are may not be the most
effective use of regular expressions.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Steve" <St***@discussi ons.microsoft.c om> wrote in message
news:11******** *************** ***********@mic rosoft.com...
Yes, I saw it from the debugger, my purpose is separate exe file and
parameter.
I used
launch_iexplore r = "\"C:\\Prog ram Files\\Internet Explorer\\iexpl ore.exe\"
-nohome" (get from the registry)
Regex r = new Regex(".exe"); // Split on .exe
string[] s = r.Split(launch_ iexplorer);

I got
s[0]="\"C:\\Prog ram Files\\Internet Explorer\\iexpl ore"
s[1]="\" -nohome"
what I want is
s[0]="\"C:\\Prog ram Files\\Internet Explorer\\iexpl ore.exe\"
s[1]="-nohome"

"Nick Malik [Microsoft]" wrote:
I assume you are looking at this value in the debugger.

you ARE getting the value without the escape characters. The debugger puts in the escape characters when it shows you the value. It's a display thing that doesn't affect the value actually stored.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Steve" <St***@discussi ons.microsoft.c om> wrote in message
news:2C******** *************** ***********@mic rosoft.com...
The string in registry is
"rundll32.e xe C:\Program Files\INTERN~1\ hmmapi.dll,Open InboxHandler"
After opensubkey and getregistry, I got
"rundll32.e xe \"C:\\Progra m

Files\\INTERN~1 \\hmmapi.dll\", OpenInboxHandle r"

Is there anyway I can get the string exactly in registry without escape character?


Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
96314
by: teachtiro | last post by:
Hi, 'C' says \ is the escape character to be used when characters are to be interpreted in an uncommon sense, e.g. \t usage in printf(), but for printing % through printf(), i have read that %% should be used. Wouldn't it have been better (from design perspective) if the same escape character had been used in this case too. Forgive me for posting without verfying things with any standard compiler, i don't have the means for now.
4
7471
by: Guadala Harry | last post by:
I need to place the following into a string... How can I properly escape the % " / < and > characters? <table width="100%" border="0" cellspacing="0" cellpadding="4px" class="hfAll"></Table> Thanks.
7
22588
by: Steve | last post by:
string str ="\"C:\Program Files\Internet Explorer\iexplore.exe\" -nohome" How can I remove charcter to string str = ="C:\Program Files\Internet Explorer\iexplore.exe -nohome"
12
9637
by: Jeff S | last post by:
In a VB.NET code behind module, I build a string for a link that points to a JavaScript function. The two lines of code below show what is relevant. PopupLink = "javascript:PopUpWindow(" & Chr(34) & PopUpWindowTitle & Chr(34) & ", " & Chr(34) & CurrentEventDetails & ")" strTemp += "<BR><A HREF='#' onClick='" & PopupLink & "'>" & EventName & "</A><BR>" The problem I have is that when the string variables or contain a string with an...
7
4185
by: Axel Dahmen | last post by:
Hi, within a DataGrid control I'm using a DataTable containing a string column to fill a Hyperlink's href attribute. Unfortunately HttpUtility.UrlEncode() doesn't escape the apostroph character, thus ruining some of my hrefs. How do I correctly escape any character using a Page's current encoding (I don't want to hard-code the encoding)? TIA,
15
18318
by: pkaeowic | last post by:
I am having a problem with the "escape" character \e. This code is in my Windows form KeyPress event. The compiler gives me "unrecognized escape sequence" even though this is documented in MSDN. Any idea if this is a bug? if (e.KeyChar == '\e') { this.Close(); }
131
9248
by: Lawrence D'Oliveiro | last post by:
The "escape" function in the "cgi" module escapes characters with special meanings in HTML. The ones that need escaping are '<', '&' and '"'. However, cgi.escape only escapes the quote character if you pass a second argument of True (the default is False): 'the "quick" &amp; &lt;brown&gt; fox' 'the &quot;quick&quot; &amp; &lt;brown&gt; fox' This seems to me to be dumb. The default option should be the safe one: that is, escape _all_ the potentially troublesome...
3
8658
by: qilin | last post by:
I am trying to save a big text string into MySQL, but I guess i need escape the string firstly, anybody knows any escape function in c for that? or any other suggests ?
5
15687
by: vlsidesign | last post by:
The printf function returns "warning: unknown escape sequence: \040" for a backslash-space combination. If the ascii decimal number for space is 32 and the backslash is 92, why this particular number 040? Is it a decimal number from the ASCII code chart? (compiling using gcc on SunOS 5.8, Sparc, Ultra-80) Just curious. Thanks.
0
8840
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9215
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8007
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4484
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4753
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2130
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.