Having built up a DXL program, I'm starting to think either I'm doing things wrong, or I'm trying to make DXL do more than it really should be doing.
My latest quest, trying to update around 300 labels has got me to a point where I don't know how to continue. Unless I can declare DBE's in an array and then loop through the array in a callback, then I'm not about to sit and write 300 items.
So my plan was to run a C# program, which would interact with Doors and it'd be great. However, the Doors that I run is actually on a Citrix server and so not on a local machine. So, first to test that it worked, I ran "system "notepad"" and notepad opened up. Wonderful, but after compiling and building my own executable (which is a very simple "hello world" console application) I get an error message that the CreateProcess failed.
If I use doors to browse an area I can see that my local machine is mapped there under "\\Client\C$\" so my command I'm trying to run in full is: system("\\\\Client\\C$\\Users\\Username\\Doors.exe")
(Obviously, double slashes to escape a dash in the string, so 4 at the beginning to indicate a network path)
But this keeps having a problem with the createprocess failed. To me that suggests that it sees the executable but for some reason it doesn't start? I tried making it simple and pointing instead to my local copy of notepad: system("\\\\Client\\C$\\Windows\\System32\\notepad.exe")
But I get the same error message. Do you think it is because of permissions? Is there any where I can get any more detailed information about the error? Is there a limitation in where the programs can be located? DataHoarder - Fri Apr 20 08:11:23 EDT 2018 |
Re: Start C# Program from DXL, CreateProcess failed? This command makes me nervous: system("\\\\Client\\C$\\Users\\Username\\Doors.exe") some questions: - wth did you name your executable doors.exe?? - Did you really deploy it in your profile directory? Or maybe under: "\\\\Client\\C$\\Users\\Username\\Desktop\\Doors.exe" ? To make sure, that your file is startable, create a batch file, with your executable command inside. Try to run the batch file from citrix. If that works, try to call the batch file via system() cmd. There should be no DOORS limitations here in place, since "system" will actually launch the command in the shell (outside of doors). Apart from that you might be able to just solve your problem in DXL. For specific questions feel free to ask :-) You can create dynamic DBEs if you need to (although I would not advise to). Regards, Mathias
|
Re: Start C# Program from DXL, CreateProcess failed? 1) Agreed it's probably a bad name to use. Not something I really thought of anyway.
2) My profile directory? I deployed it from the path:"\\\\Client\\C$\\Users\\Username\\Desktop\\Doors.exe"
How do you suggest Irun the batch file through Citrix? My company does not provide a Citrix desktop that I can load, I can only load Doors and run commands through the DXL there. |
Re: Start C# Program from DXL, CreateProcess failed? DataHoarder - Mon Apr 23 06:16:05 EDT 2018 1) Agreed it's probably a bad name to use. Not something I really thought of anyway.
2) My profile directory? I deployed it from the path:"\\\\Client\\C$\\Users\\Username\\Desktop\\Doors.exe"
How do you suggest Irun the batch file through Citrix? My company does not provide a Citrix desktop that I can load, I can only load Doors and run commands through the DXL there. In your first post you are missing the the "Desktop" inside the system cmd parameter string. Chances are that you are simply trying to run the wrong path. You should easily be able to get out of the Citrix Application. Usually when you do "File / Open" and you get that File Browser you can right click on a file and run it from the context menu. You can also try to execute system("cmd") from DXL to open a shell window (from which you can do everything else). Maybe that helps, regards, Mathias |
Re: Start C# Program from DXL, CreateProcess failed? The paths I wrote in here don't match my actual paths, but I was making sure to copy and paste the paths to confirm it was correct.
I'll have to check about getting a citrix desktop to run on. I just open a webpage which has the applications I'm allowed to open (in my case, only Doors. At a previous company I had a specific option of opening a Desktop). I've tested opening system("notepad") which works, but I will give a cmd window a try as you are correct that once that is open I could just do everything from there. |
Re: Start C# Program from DXL, CreateProcess failed? DataHoarder - Tue Apr 24 10:47:55 EDT 2018 The paths I wrote in here don't match my actual paths, but I was making sure to copy and paste the paths to confirm it was correct.
I'll have to check about getting a citrix desktop to run on. I just open a webpage which has the applications I'm allowed to open (in my case, only Doors. At a previous company I had a specific option of opening a Desktop). I've tested opening system("notepad") which works, but I will give a cmd window a try as you are correct that once that is open I could just do everything from there. if you can get a notepad open, you can from notepad go to "File/open" navigate to system32 right click on cmd exe and choose "open" to get a command prompt. |