c# - Spaces in file path -
c# - Spaces in file path -
i'm creating console application in c#, , want check if specific file (foo.exe). when path contains spaces (c:\a folder spaces\) checks if foo.exe exists @ directory: c:\a.
question: how can check within of folder contains spaces?
it looks passing name of file command-line parameter. in case split @ space done windows cmd command processor when pass c:\a folder spaces\ parameter. prepare this, enclose file name in doublequotes:
c:\test>myprog.exe "c:\a folder spaces\foo.exe" c# file path space
Comments
Post a Comment