Error: unrecognised exhaust sequence [C#]

Asked

Viewed 1,541 times

3

For this code snippet in my program I receive the error warning that it considers that the command has an invalid exhaust sequence, that is, not recognized.

string.Format("/c {0}", "cd .\Debug & imagem.png");

How to proceed and make him able to recognize the code?

1 answer

4


The following link demonstrates how to ignore this: ERROR CS1009

Basically, in the case presented, it would be enough to place the character at@ in front of the command or if another backslash was inserted \ at the helm.

Thus remaining:

@"cd .\Debug & imagem.png"

or

"cd .\\Debug & imagem.png"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.