spawn processes in windows




hi:

Yesterday a guy have a problem with this:


GError *error;
gboolean ii=g_spawn_command_line_async (g_strdup_printf("\"%s\" \"%s\"",executable,argument),&error); //gboolean ii=g_spawn_command_line_async ("\"C:/Archivos de programa/GlobalMapper8/global_mapper8.exe\" \"C:/Archivos de programa/GlobalMapper8/file1\"",&error);


The problem is in msdos console you need declare paths like this:
"C:/Archivos de programa/GlobalMapper8/global_mapper8.exe"

, but like you work in C you need scape the asterisk character with \



Regards.



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