Same script is NOT when double click in the path D:\My Documents\Softwares\PowerShell RRS feed

  • Question

  • Hello friends,

    I configured to execute poweshell scripts when I double click them. But they are NOT WORKING when I double click on them when the scripts are in the path or folder D:\My Documents\Softwares\PowerShell. But they are working when I call them thru Powershell console. But if I double click the same, they are not working. I tried by creating profile.ps1 too but no luck

    But they are WORKING when I double click when they are in the folder  C:\Scripts or D:\Scripts. 

    I know the difference is space between MY Documents. Is there any way they can work in the path D:\My Documents\Softwares\PowerShell  with double click?

    Sunday, December 24, 2017 5:26 PM

All replies

  • try creating the batch file and call powershell from that.

    then you can double click on the batch file.

    • Proposed as answer by Nothing 123 Monday, December 25, 2017 3:22 AM
    Monday, December 25, 2017 3:21 AM
  • Thanks for your time to reply.

    Well I am not looking for work around. Just want to know why its not working and is there any way to fix it like tweaking Registry or something like that.

    • Edited by vvkprasad Monday, December 25, 2017 12:58 PM
    Monday, December 25, 2017 12:57 PM