1
vote
1answer
786 views

How do I export HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe with regedit from cmd.exe?

I am trying to export the registry key HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe but am unable to do so, probably because of the percent signs. I tried to escape the %-sign with a caret ...
2
votes
2answers
1k views

Escaping %’s in file-/folder-names at the command-line

Does anybody of a way to access files and directories that have a % in their name (which is valid) from the command-line? Specifically, if there are two %’s and the text between them happens to ...
21
votes
3answers
44k views

How do I escape spaces in command line in Windows without using quotation marks?

For example what is the alternative to this command without quotation marks: CD "c:\Documents and Settings" The full reason I don't want to use quotation marks is that this command DOES work: ...
3
votes
3answers
817 views

How do I escape the string \" for command line in Windows?

For a script that compiles LaTeX for me, I have to send the string \" to the command line, within a string delimited by ". Example: >pdflatex "\IeC{\" o}" How do I escape the " in the middle? If ...
2
votes
4answers
2k views

Can't escape single quotes in shell

I'm trying to make a command to do a perl substitution on a batch of php files in a directory. The string I want to replace has single quotes in it, and I can't get it to properly escape the in shell. ...