"flash_windows.bat" fails to execute

“flash_windows.bat” fails to run on Windows.

Context:
I am trying to follow this tutorial to flash my Arduino Nano 33 BLE Sense. I downloaded the provided files and just as the tutorial says I tried executing the flash_windows.bat file through Command Prompt. But it fails with this message:

'arduino-cli version' is not recognized as an internal or external command, operable program or batch file.

I’ve tried running my Command Prompt s Administrator but the issue still persists. The worse part is that when I try entering the command "arduino-cli version" manually it seems to be working fine and prints the latest version. I’ve even tried adding it manually to the SYSTEM_PATH but that doesn’t work either.

Any help would be apreciated!

Can you try running “.\flash_windows.bat”? This worked for me.

I tried doing the exact thing but it fails with the same message. It’s almost as if it cannot find arduino-cli on the system even though it is included in the User PATH variable of my OS.

Ok. Yeah I don’t have any other ideas. Im a newb. Can you maybe check that your path variables for the arduino CLI are set to your user account, and not just the admin account? Is there a difference when you from from command line as admin vs not?