-2

I'm trying to call a PowerShell script from another PowerShell script. The script I'm trying to call is in a subfolder named "Release" of the current directory.

I tried the following command but get an 'file not found' error from the PowerShell console.

."..\Release\out-datatable.ps1"
6
  • 1
    You'll need to provide a little more detail about the error condition than "is going wrong" Commented Apr 28, 2015 at 11:15
  • i edited my post so can delete your downvote, it's a serious question Commented Apr 28, 2015 at 11:17
  • How exactly is it "going wrong"? Do you get errors? If so, what do they say? If you don't get an error: what do you get? And how does that differ from what you expect? Commented Apr 28, 2015 at 11:18
  • Please post the exact error message. Commented Apr 28, 2015 at 11:19
  • @Arturka1 I didn't downvote - but the quality of your question (serious or not) justifies a downvote none the less Commented Apr 28, 2015 at 11:32

1 Answer 1

0

I have solved this by simply change to the subdirectory. I wrote the following command to my script

cd Release

. .\out-datatable.ps1
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.