This blog has moved, permanently, to http://software.safish.com.

Thursday, August 18, 2011

Cruise Control Powershell Script with spaces in path

 

I have a powershell script that is executed as a Cruise Control.NET task.  The problem is, the script sat in a length path with spaces in some of the folder names.  The “powershell” task itself doesn’t support spaces, so the solution to this is to use old-school 8 character directory names.

For example, if you script lies in the path “C:\Parent Folder\NotParent Folder”, set your task up as follows:

<powershell>
	<script>myscript.ps1</script>
	<executable>C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe</executable>
	<scriptsDirectory>C:\Parent~1\NotPar~1</scriptsDirectory>
	<description>Build something.</description>
</powershell>

4 comments:

  1. your codings and concepts are really wonderful i came to know many concepts from your blog. thus it is really interesting.

    Online Reputation Management

    ReplyDelete
  2. This blog is having the general information. Got a creative work and this is very different one. We have to develop our creativity mind. This blog helps for this. Thank you for this blog. this is very interesting and useful.
    Digital Marketing Company

    ReplyDelete
  3. i got some more information about this topic, it is really helpful for me thanks for sharing those information. i need more information about this concept.


    Best Informatica Training Institute in Chennai

    ReplyDelete
  4. Great information shared in this blog. Helps in gaining concepts about new information and concepts.Awsome information provided.Very useful for the beginners.
    SEO Training in Chennai

    ReplyDelete

Note: Only a member of this blog may post a comment.