I created a Windows Adapter and defined an application to be started by a command from a batch file, but the element of the application cannot be recognized.
The definition is as follows.
Path: Full path of batch file (c:\xxxx.…\xxx.bat)
Target Path: Command started from batch file (cmd /c start /min c:\xxxx.…\xxx.exe xxx.unc)
HookChildProcess: True
StartMethod: Start
StartOnProjectStart: False
When I Start Interrogation, the batch file is started, but it seems that Interrogation ends without waiting for the start of the child process.
Is there a good solution?
Environment:
OS : Windows10 Enterprise(10.0.17763)
Studio 19.1.38.0
Unless the process is actually a child process of CMD.exe (you can use a tool like Process Explorer to determine), then you will likely not capture the process. The best way to handle this scenario is to use the StartMethod of StartAndWait. Your TargetPath property would need to be changed to point to the exe that the command is starting. You will likely need to modify your WorkingDirectory property as well.