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 7018769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:05:43+00:00 2026-05-27T23:05:43+00:00

I have a very simple script that uses Copy-Item in the Task Build section

  • 0

I have a very simple script that uses Copy-Item in the Task Build section following the psake conventions (and examples). Right now that’s all it does in an attempt to simplify the script to debug this issue.

The Error:

18/07/2011 5:40:57 PM: An Error Occurred:

Exec: Error executing command: Copy-Item “$src_dir..\somefolder*.dll” $bin_dir

I have tried just outputting the file paths via Write-Host and they look fine.

I need some help please debugging this, getting the script code (Copy-Item) to work in isolation to psake isn’t an objective.

The Script:

Properties {
    $src_dir = Split-Path $psake.build_script_file
    $bin_dir= "$build_dir\..\Binaries\"
}

include .\psake_ext.ps1

Task Build -Depends Clean, Init {
    Write-Host "about to error here:"

    Exec { Copy-Item "$src_dir\..\somefolder\*.dll" $bin_dir }

    Write-Host "do NOT get this far"
    #more similar Exec copy commands, that don't execute
}

Task Clean {    

}

Also note:

This script was working and only intermittently failing in the very recent past,
but now seems to fail more consistently.

Executed via:

.\psake.ps1 "failing-copy-script.ps1" Build
  • 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-27T23:05:44+00:00Added an answer on May 27, 2026 at 11:05 pm

    So this question has an answer, summarizing the comments from question and other info:

    If you are experiencing this issue diagnostic steps to take:

    1. “Have you tried turning it off and on again?” – Close anything that may have to do with the script, including your IDE, even restart your machine.
    2. Try a tool like lockhunter
    3. Avoid using ‘Exec { bla }’ command if it is not required.
    4. Search for hooks with Process Explorer
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple greasemonkey script that I want to call an already
I have a very simple python script that should scan a text file, which
I have a very simple bit of script that changes the status of an
I have the following very simple Javascript-compatible regular expression: <script type=text/javascript id=(.+) src=([^]+)> I
I have a very simple demo working that uses Webkit transforms and transitions for
One of our customers said they have a very simple script which uses fsockopen()
I have a very simple script that slides a message down from the top
I have a bash script that tests whether the sftp connection exists, very simple
I have a very simple script that pulls data from a mysql db, However
I have a simple image upload script that uses SimpleImage.php (http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/) to resize and

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.