Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Run App and Batch File don't generate process (https://www.kinook.com/Forum/showthread.php?t=4292)

RodrigoReboucas 11-10-2009 04:09 PM

Run Program and Batch File don't generate process
 
Hi,

I am trying to run an application using either a "Batch File" or a "Run Program" step. When I double click on the *.exe file outside VBP through windows explorer the program runs correctly (opens command prompt since it is a console app) and I can see the process created in the Windows Task Manager Processes list, ...but when I execute it inside VBP using those 2 steps the output of my app is written on the VBP Output window correctly (exact same output from command prompt) but it never generates the process in Windows Task Manager. Am I missing something? Here is the xml of my VBP steps trial:


C:\VisualBuild\Logging Applications\FolderWatcher\FolderWatcher\bin\Relea se\FolderWatcher.exe
1
Run Projects Folder Watcher
1
C:\VisualBuild\Logging Applications\FolderWatcher\FolderWatcher\bin\Relea se\




C:\VisualBuild\runFolderWatcher.bat
FolderWatcher.exe
]]>

1
-1
1
Run Folder Watcher
C:\
-1



PS: I am using VBP Version 6.0

kinook 11-10-2009 04:12 PM

Maybe the process exits immediately or is being run under a different user account.

RodrigoReboucas 11-10-2009 04:18 PM

Is there any way to make it run exactly like if I was double clicking on it through windows explorer?

The user account is the same and I am monitoring the Task Manager Processes List while I execute the VBP steps and nothing comes up although the VBP Output window shows the application as running.

Is there any chance that the completion of the VBP step can kill the process? I actually need to leave this app open while I run some other VBP steps and kill the app later since it is a logging Application.

Thanks
Rodrigo

kinook 11-10-2009 04:24 PM

There isn't much difference -- they both call CreateProcess.
http://www.kinook.com/Forum/showthre...?threadid=3044

RodrigoReboucas 11-10-2009 05:33 PM

I found out what the problem was. I had the "Wait For Completion" checkbox checked in the batch file step. As soon as I unchecked that the process was created correctly.

Thanks,
Rodrigo


All times are GMT -5. The time now is 09:53 PM.


Copyright © 1999-2023 Kinook Software, Inc.