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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -