Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-10-2009, 05:09 PM
RodrigoReboucas RodrigoReboucas is online now
Registered User
 
Join Date: 07-15-2009
Posts: 12
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:

<step action='Run Program'>
<command>C:\VisualBuild\Logging Applications\FolderWatcher\FolderWatcher\bin\Relea se\FolderWatcher.exe</command>
<indent type='3'>1</indent>
<name>Run Projects Folder Watcher</name>
<outputfrom type='3'>1</outputfrom>
<startin>C:\VisualBuild\Logging Applications\FolderWatcher\FolderWatcher\bin\Relea se\</startin>
</step>


<step action='Batch File'>
<CmdFile>C:\VisualBuild\runFolderWatcher.bat</CmdFile>
<CmdStr><![CDATA[cd C:\VisualBuild\Logging Applications\FolderWatcher\FolderWatcher\bin\Relea se\
FolderWatcher.exe
]]></CmdStr>
<CmdType type='3'>1</CmdType>
<NoEcho type='11'>-1</NoEcho>
<indent type='3'>1</indent>
<name>Run Folder Watcher</name>
<startin>C:\</startin>
<window type='11'>-1</window>
</step>


PS: I am using VBP Version 6.0
Reply With Quote
  #2  
Old 11-10-2009, 05:12 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Maybe the process exits immediately or is being run under a different user account.
Reply With Quote
  #3  
Old 11-10-2009, 05:18 PM
RodrigoReboucas RodrigoReboucas is online now
Registered User
 
Join Date: 07-15-2009
Posts: 12
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
Reply With Quote
  #4  
Old 11-10-2009, 05:24 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
There isn't much difference -- they both call CreateProcess.
http://www.kinook.com/Forum/showthre...?threadid=3044
Reply With Quote
  #5  
Old 11-10-2009, 06:33 PM
RodrigoReboucas RodrigoReboucas is online now
Registered User
 
Join Date: 07-15-2009
Posts: 12
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 01:27 PM.


Copyright © 1999-2023 Kinook Software, Inc.