HELP = (

When im trying to delete a registry key with that code :

system("REG DELETE HKLM\\Software\\Microsoft\\Windows NT");

... just an example

I get this error : "Invalid command-line parameters"
Ive noticed that its because of the space in it but i cant figure out how to fix my problem thats why im posting here.

sorry if here isnt the right place to post that but im new (just registered)
Last edited on
I think wrapping the parameter in "s would solve it (to have "s in a string you need to write \")
closed account (DSLq5Di1)
Would hate to think what you plan on doing by deleting such a key..
What I understood was to add \"s to the string but it didnt work ...
Did you make it "REG DELETE \"HKLM\\Software\\Microsoft\\Windows NT\"" ?
If that doesn't work (what does it say?) then I don't know. Maybe %20 instead of the space.. Never worked much with windows console..
Thanks... It turned out that I misunderstood u the first time but now its ok...
and thx for the fast answers =)
Last edited on
Topic archived. No new replies allowed.