1

Closed

Quotes in arguments

description

We are using the RemoteHooking.CreateAndInject, and pass arguments which contain double quotes, like:

@"/RT:Live /W:""\server\test""";

The application receives this argument, but all quotes were stripped for some reason; and therefore it fails.

Do you have any idea why double quotes are stripped?
Closed Aug 15, 2015 at 7:15 AM by spazzarama

comments

lustuyck wrote Feb 11, 2014 at 7:35 AM

Correction: it seems arguments are not passed at all? My code is:

RemoteHooking.CreateAndInject(_applicationPath,
                                            _commandLineArgs,
                                            (int)creationFlags,
                                            "AHRUValuationControllerAFMToolboxInject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=95DCCA448AADD932",
                                            "AHRUValuationControllerAFMToolboxInject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=95DCCA448AADD932",
                                            out processId,
                                            ChannelName,
                                            regKeyOverride.Key,
                                            regKeyOverride.ValueName,
                                            regKeyOverride.OverridenValue
                                            );                
And commandLineArgs contains a string. But the executed application doesn't receive it.

wrote Aug 15, 2015 at 7:15 AM