none
issue on whitespace in path

    Question

  • hi,

    When I tried the following piece of code:

     

     DWORD dret;
     PROCESS_INFORMATION processor;
     ret = CreateProcess(L"\\Windows\\wceload.exe",
      L"\\Temp\\New Folder\\GoogleMaps.CAB",
      NULL,
      NULL,
      FALSE,
      INHERIT_CALLER_PRIORITY,
      NULL,
      NULL,
      NULL,
      &processor);

    The installer could not be triggered successfully.

    But it works if the second parameter is L"\\Temp\\GoogleMaps.CAB".

    So seems that the problem comes from whitespace in path.

     

    Would anybody tell me how can I use whitespace correctly in path?

     

     

    Thanks,

    Jabin

    Wednesday, March 12, 2008 2:22 AM

Answers

All replies