CreateProcess Escape Sequence

Hello,

I have created a CreateProcess to install a software package when the install button is clicked. The button works properly as I have tested it with different code to change the title of the window. However, with the code below I end up getting two errors because I do not have an escape sequence that will work properly. I have looked all over the web but I do not seem to be able to find anything viable. Does anyone have any suggestions on what might work? I appreciate the advice!


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
switch (LOWORD(wParam))
              {
                     case ID_INSTALL:
                          
                         BOOL checked = IsDlgButtonChecked(hwnd, ID_AP11); 
                          if (checked){
                              CheckDlgButton(hwnd, ID_AP11, BST_CHECKED);
                              
                                  CreateProcess( TEXT("E:\Programs\AcrobatPro_11_Web_WWMUI.exe"),
			                                     NULL,NULL,NULL,FALSE,
                                                 CREATE_NEW_CONSOLE,
                                                 NULL,NULL,&si,&pi);                                                
                                }else{                                                                                                                 
                                      }                                
                          break;
                                
                                };
Try TEXT("E:\\Programs\\AcrobatPro_11_Web_WWMUI.exe")

i.e., escape the backslash
That ended up working. Out of curiousity, when I go to automate that software package would I be putting the script within create process?
Topic archived. No new replies allowed.