Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 870543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:29:41+00:00 2026-05-15T10:29:41+00:00

I am working with PowerShell 2.0 with Psake 1.4 Here is the dos command

  • 0

I am working with PowerShell 2.0 with Psake 1.4

Here is the dos command that is running that I want to convert to PowerShell.

"C:\Program Files\Borland\StarTeam 2005 R2\stcmd.exe" co -p "rubble.barney:dinno@HostName:4455/MySolution/WebApp" -is  -fp "D:\FooBar\MySolution\Source"

Notice that the path to stcmd has a space in it

Notice that there is a : between barney:dinno
Notice there area three quoted strings.

Here are my script properties and notes

$AppName = “MySolution”
$StarExe = “C:\Program Files\Borland\StarTeam 2005 R2\stcmd.exe”
$StarProject = “rubble.barney:dinno@HostName:4455/$AppName/WebApp”
$StarOutDir = “D:\FooBar\$AppName\Source”
$StarCommand = “””$StarExe”” co -p “”$StarProject”” -is -nologo -q -fp “”$StarOutDir”””

task default -depends GetSource

task Init {
“Working on $AppName”
$ErrorActionPreference = ‘Stop’
}

task GetSource -depends Init {
‘Get Soure From Star Team’
correct to use invoke? Should it be &, or exec { }
invoke-item $StarCommand
}

Any help would be awesome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T10:29:42+00:00Added an answer on May 15, 2026 at 10:29 am

    Try:

    & $starexe co -p $StarProject -is -nologo -q -fp $StarOutDir
    

    I presume you’re using powershell 2.0. Version 1.0 of powershell had way quirkier native command* argument parsing.

    • native commands = exe, com, bat files etc.

    -Oisin

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When working with powershell cmdlets, I often find that I need to set a
Update, Script is working with PowerShell V3.0, Thanks @ Doug I want to use
Working on a simple helper function in PowerShell that takes a couple of parameters
I'm pretty new to Powershell. I have 2 different scripts I'm running that I
I am working on a PowerShell script that will monitor a list of servers
I'm working with some multi-gigabyte text files and want to do some stream processing
We are providing scripts to clients that will be working only in Powershell 2.0.
I'm working with csproj files using Powershell to perform large-scale editing of project references.
I am working on a PowerShell function that is supposed to check if two
I want to start a Java program from PowerShell and get the results printed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.