C# Command Line Argument
C#
2
Posts
2
Posters
0
Views
1
Watching
-
Hi I am passing parameters to my console Application via Command Line ex: MyApp.exe Path="C:\this.txt" Name=1 Now this works ok. But Is it possible to send Parameters like ex: MyApp.exe Path="C:\Folder (Test)\this.txt" Name=1 Thanks in Advance
Develop2Program & Program2Develop
-
Hi I am passing parameters to my console Application via Command Line ex: MyApp.exe Path="C:\this.txt" Name=1 Now this works ok. But Is it possible to send Parameters like ex: MyApp.exe Path="C:\Folder (Test)\this.txt" Name=1 Thanks in Advance
Develop2Program & Program2Develop
All need is MyApp.exe "C:\Folder (Test)\this.txt" 1 The delimiter for arguments is the space, as long as the path is enclosed in quotes you should be fine.
only two letters away from being an asset