dimanche 3 mai 2015

How do I execute a script from Windows Powershell?

I created a small aws.bat script and then in PowerShell I navigated to the script directory.

But when I type aws then I get an error message and it does not execute the script. Is there a special thing I should be doing?

Here's what I have tried:

PS C:\G> .\aws.bat

C:\G>$BucketName = "ab-user"
'$BucketName' is not recognized as an internal or external command,
operable program or batch file.

The very first and every othre command has a similar message.




Aucun commentaire:

Enregistrer un commentaire