& in registry

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

what is the meaning of Ambersand(&) in registry, if i need to read a registry
entry a&b my application fails to read a&b?, is it a special character?, a
seperator? or what does & refers in registry entry.
 
mukesh said:
what is the meaning of Ambersand(&) in registry, if i need to read a registry
entry a&b my application fails to read a&b?, is it a special character?, a
seperator? or what does & refers in registry entry.
I'm going to assume you meant ampersand.
 
What is your application?

The ampersand (&) seems to be a reserved character used as commands or parts
of commands in many different things.

In scripting, the ampersand (&) is used to link things together, such as
strings or variables.

Can also be part of a command name:
&Run
&Open
&Edit
&Play
&New
&Print
P&in

In the command line:

command1 & command2
Use to separate multiple commands on one command line. Cmd.exe runs the
first command, and then the second command.

command1 && command2
Use to run the command following && only if the command preceding the symbol
is successful. Cmd.exe runs the first command, and then runs the second
command only if the first command completed successfully.

In Notepad, these are used in Headers or Footers:
&f Insert the open file's name or (untitled) if the file has no name.
&d Insert the date.
&t Insert the time specified by your computer's clock.
&p Insert page numbers.
&& Insert an ampersand (&).
&l, &c, or &r Align the header or footer to the left, center, or right.

If you do a Search and use only the ampersand (&), it's the same as using a
question mark (?) or an asterisk (*) and Search will find every file and
folder on your machine.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
mukesh said:
what is the meaning of Ambersand(&) in registry, if i need to read a
registry
entry a&b my application fails to read a&b?, is it a special character?, a
seperator? or what does & refers in registry entry.

Depends on the context and the code / language constructs you are using to
read it. Sometimes it's used for keyboard shorcuts (accelerator keys). More
info needed.

Jon
 
Back
Top