Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing path as argument to EXE
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01409769
Message ID:
01409781
Views:
37
>>I am passing a file path as an argument to an EXE. All works well on my development machine because the path does not contain any spaces.
>>So I am passing the following path:
>>
>>C:\Program Files\Alliance Laundry Systems\Quantum Coin Software\
>>
>>
>>Now when I look at the args array it looks like this:
>>
>>C:\Program
>>Files\Alliance
>>Laundry
>>Systems\Quantum
>>Coin
>>Software\
>>
>>
>>I know I can put it back togeter into the correct path but I've got other stuff in the args and the order of the args elements is important (backwards compatibility and that stuff).
>>
>>Is there a way to pass a string into the args without it breaking it up in the args?
>>
>>Maybe if I use single quotes around it?
>>
>>Thanks,
>>Einar
>
>Yes, you would need quotes around the path and I think single quotes would work OK.

I tried single quotes and it didn't work, but double quotes did work. so if I pass
"C:\Program Files\Alliance Laundry Systems\Quantum Coin Software\"
it takes one element in the args array.
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform