Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] Third Party Tools (https://www.kinook.com/Forum/forumdisplay.php?f=3)
-   -   Call Powershell script? (https://www.kinook.com/Forum/showthread.php?t=2585)

JeffMN 05-03-2007 09:03 AM

Call Powershell script?
 
I have a build script that calls another program to deploy the built ASP.NET web application. I have an environment variable set up in VBP to indicate what environment the script is to deploy to. Prior to doing this, the config files for the web application need to be updated with the correct values.

Another developer here has written a Powershell script to do this. If I run it at the command line, it works fine. I've wrapped it in a batch file as well, and it works fine. If I try to call it either way from VBP, I get "Access to the path is denied." I've played with the security (giving 'Everyone' full control) in the directories this script is working with, and it always fails the same way - it's driving me nuts!

I'm using the VBP 'Run Program' action to call this. Can someone help me get to the bottom of this? Thanks.

kinook 05-03-2007 10:00 AM

PowerShell doesn't seem to be able to open the stdin/out pipe created by VBP. Use a command like

powershell ... >%TEMP%\out.txt

and configure the step to read output from %TEMP%\out.txt instead of Standard output.

We have found a workaround for the problem which will be implemented in the next release.


All times are GMT -5. The time now is 05:21 AM.


Copyright © 1999-2023 Kinook Software, Inc.