I believe what Volker is suggesting is to create your command in this way:

cmnd := exec.Command("C:/Program Files/internet explorer/iexplore.exe",
"--nogui", "--start", "AGT_BANCL_CobrosManuales")

Have you given this a shot? The exec.Command function expects each
space-separated argument of the command to be a separate argument. I
suspect that exec.Command is seeing spaces in the one argument you're
giving it and assuming it needs quotes.

On Wed, Sep 5, 2018 at 9:17 AM Daniel Estiven Rico Posada <
danielrico.pos...@gmail.com> wrote:

> Yeah, but i want that when i execute an application from Go exec, be the
> same that if i executed from cmd directly. But actually, the execution from
> go exec have quotation marks in the args.  is there something possibility?
>
>
>
> El miércoles, 5 de septiembre de 2018, 3:32:44 (UTC-5), Daniel Estiven
> Rico Posada escribió:
>>
>> Hello,
>>
>> Actually i'm working in a go application that receive a http request and
>> start some windows assistants. (RPA's)
>>
>> The assistants are executed from windows cmd:
>> > "C:/path/file.exe" --args
>>
>> When i start the assistant from cmd manually, in the task Manager i see
>> the arguments without quotation marks. But if i open the assistant from go
>> application the arguments are left with quotation marks.
>>
>>
>>
>> In golang i'm using the lib *"os/exec":*
>>
>> Internet explorer is only an example.
>>
>> *Do you know what's the reason?*
>>
>> Thanks.
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to