none
How to code this powershell? RRS feed

  • Question

  • I would like to know on why the following script not able to open URL using Chrome by joining strings together

    C:\path.txt contains "business"

    start /b /max "IE" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "https://edition.cnn.com/" + (Get-Content 'C:\path.txt')

    Does anyone have any suggestions?
    Thanks in advance for any suggestions


    Thanks in advance for any suggestions



    • Edited by oemMicrosoft Thursday, February 21, 2019 3:27 AM
    • Moved by Bill_Stewart Wednesday, September 4, 2019 5:56 PM Help vampire
    Thursday, February 21, 2019 3:06 AM

All replies

  • This is a scripting forum for Microsoft. It is not a "Chrome" forum and you issue is not about a script.  You need to post in a Google/Chrome forum to get help with your issue.

    Your line of command is bogus. You cannot use batch commands in PowerShell and PowerShell cannot execute batch commands.

    You have to decide...is this PowerShell or batch.  As posted it is just nonsense.

    Also note that his forum is not for free script translation.  You need to write a script and ask a question about a script you have written.  You also need to have learned basic scripting before asking a question.


    \_(ツ)_/


    • Edited by jrv Thursday, February 21, 2019 3:35 AM
    Thursday, February 21, 2019 3:33 AM