how to handle spaces in file path if the folder contains the space?

It’ll need doubles quotes, but will also likely need an @ to treat the string word-for-word (verbatim string) i.e. the “\” has a special meaning in string e.g. \t means a tab, so we want to ignore the \

So not only the double quotes, but also @

string myArgument = @"D:\Visual Studio Projects\ProjectOnTFS\ProjectOnTFS";

Leave a Comment