Problem with \ in a string

if i have \ in a string, such as C:\myMusic. is there a way to stop it from becoming C:\yMusic? I’m looking for a way to do this without having to make it C:\myMusic.

Thanks,
Brendan Smith