urska@lemmy.ca to Programmer Humor@lemmy.ml · 3 months agoGood evening I hate Windows. Yes, I have to do this.lemmy.caimagemessage-square52fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageGood evening I hate Windows. Yes, I have to do this.lemmy.caurska@lemmy.ca to Programmer Humor@lemmy.ml · 3 months agomessage-square52fedilink
minus-squarebeeng@discuss.tchncs.delinkfedilinkarrow-up0·3 months agoCommand prompt is CMD and batch script, Powershell is Pwsh and .ps1, then bash is .sh. You’ve confused a few things here… FYI, open a powershell terminal separately, to the path of your script (powershell in file Explorer path) and run your script. Do rest of Work in Vscode Done.
minus-squareToribor@corndog.sociallinkfedilinkEnglisharrow-up0·3 months agoI use Ansible on WSL to run Powershell scripts on Windows using VSCode. I’m surprised it works as well as it does.
minus-squarebeeng@discuss.tchncs.delinkfedilinkarrow-up0·3 months agoYou use Linux to run Ansible to run ps1 on Windows, exactly how it’s meant to be used!
Command prompt is CMD and batch script, Powershell is Pwsh and .ps1, then bash is .sh.
You’ve confused a few things here…
FYI, open a powershell terminal separately, to the path of your script (powershell in file Explorer path) and run your script.
Do rest of Work in Vscode
Done.
I use Ansible on WSL to run Powershell scripts on Windows using VSCode. I’m surprised it works as well as it does.
You use Linux to run Ansible to run ps1 on Windows, exactly how it’s meant to be used!