Re: exec application in windows



If you want to put a quote in in your string you should be using \",
right?  Not "".

Also try,

gboolean ii=g_spawn_comand_line_async  ("\"C:/Archivos de
programa/GlobalMapper8/global_mapper8.exe\"",&error);

I would've thought that one of those would work.

Thanks,

Michael

On 21/11/2007, Michael Lamothe <michael lamothe gmail com> wrote:
Have you tried,

gboolean ii=g_spawn_comand_line_async  ("C:/Archivos de
programa/GlobalMapper8/global_mapper8.exe",&error);

Thanks,

Michael

On 21/11/2007, Martin (OpenGeoMap) <martin opengeomap org> wrote:
Hi:

I am trying exec a exe in windows like this:

GError *error;
gboolean ii=g_spawn_comand_line_async  ("C:/""Archivos de
programa""/GlobalMapper8/global_mapper8.exe",&error);



and so:

GError *error;
gboolean ii=g_spawn_comand_line_async  ("C:/""Archivos de
programa""/GlobalMapper8/global_mapper8.exe",&error);


. but nothing works...



In MS-DOS this works fine:
C:/"Archivos de programa"/GlobalMapper8/global_mapper8.exe

The problem it´s the spaces in windows


This line works fine:
GError *error;
gboolean ii=g_spawn_comand_line_async
("C:/folder1/global_mapper8.exe",&error);


regards.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]