Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mediacreationtool.bat Script not working and I tried to run it as a ps1 file instead. in powerscript 5 and 7. #308

Open
geekpros opened this issue Dec 19, 2023 · 1 comment

Comments

@geekpros
Copy link

I can't get this to work but the links in the script work fine. I could not get this to run without errors as a batch file so I changed it to a power script file and I get a different error after I set-executionpolicy unrestricted. Am I doing this wrong? I'm shooting at straws now but here is the error I get running the script directly from powerscript. Seems the interpreter is reading the parenthesis and doesn't recognize the double quotes. Like I'm probably doing this wrong. Most of the answers up here are very vague and incomplete. They expect I knew how to do this last year and use that method on the last post.

PS C:\users\geekpros\desktop\Media Creation Tool by version> .\mediacreationtool.ps1
At C:\users\geekpros\desktop\Media Creation Tool by version\MediaCreationTool.ps1:285 char:78

  • ... et "S=%SystemRoot%" & set "nx0=%~nx0" & call set "nx0=%%nx0:)=]%%" & ...
  •                                                             ~
    

Unexpected token ')' in expression or statement.
At C:\users\geekpros\desktop\Media Creation Tool by version\MediaCreationTool.ps1:286 char:24

  • set "PATH=%S%\Sysnative;%S%\Sysnative\windowspowershell\v1.0;%S%\Sys ...
  •                    ~
    

Missing closing ')' in expression.
At C:\users\geekpros\desktop\Media Creation Tool by version\MediaCreationTool.ps1:294 char:4

  • for /f "delims=:" %%s in ('echo;prompt $h$s$h:^|cmd /d') do set "|=%% ...
  • ~
@AveYo
Copy link
Owner

AveYo commented Dec 19, 2023

What is the OS language and version you are running the script from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants