# Feature request: Parameter local flash including \<target drive\>

**URL:** <https://forums.balena.io/t/feature-request-parameter-local-flash-including-target-drive/264517>\
**Category:** balenaEtcher\
**Tags:** balena-cli\
**Created:** [March 2, 2021, 8:35am UTC](https://forums.balena.io/t/feature-request-parameter-local-flash-including-target-drive/264517 "2021-03-02T08:35:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeFish](https://avatars.discourse-cdn.com/v4/letter/l/dbc845/32.png) [@LeFish](https://forums.balena.io/u/LeFish)\
**Post date:** [March 2, 2021, 8:35am UTC](https://forums.balena.io/t/feature-request-parameter-local-flash-including-target-drive/264517/1 "2021-03-02T08:35:42Z")

</div>

Hi there,

I would like to use Balena to mass-flash my RPi Images.

Therefore I wrote a simple C++ program running on Windows 10. (Linux is not an option, as the person, who will be in charge of mass-flash images only runs a Windows PC)

I need BalenaEtcher as a flashing engine accessible from CLI.

Right now I am using etcher v1.1.2 as this is the only command line etcher version, that actually works on windows. [etcher Windows 10 issue](https://github.com/balena-io/etcher/issues/2274)  
v1.1.2 is not very stable, as it sometime stops writing until I press any key, but it works…

I would like to use the more modern (and hopefully stable) Balena-CLI

Here comes my feature request: Is it possible to extend the parameter local flash to take not only the image, but the target drive as well?

A call would look like:

```
.\balena.exe local flash "image.img" "\\.\PhysicalDrive1"

```

Right now I am getting an error:  
`Unexpected argument: \\.\PhysicalDrive1`

Thank you!

Best regards,  
LeFish

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [March 2, 2021, 12:55pm UTC](https://forums.balena.io/t/feature-request-parameter-local-flash-including-target-drive/264517/8 "2021-03-02T12:55:07Z")

</div>

Hello LeFish, we should have some examples on etcher-sdk that can do that. However you will need to install node, npm and ts-node to run it.

Let us know if that works for you.

---

<div class="post-metadata">

**Author:** ![thundron](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/thundron/32/1379_2.png) [@thundron](https://forums.balena.io/u/thundron)\
**Post date:** [March 4, 2021, 5:00pm UTC](https://forums.balena.io/t/feature-request-parameter-local-flash-including-target-drive/264517/12 "2021-03-04T17:00:34Z")

</div>

Hi, you can use the typescript example here [etcher-sdk/multi-destination.ts at master · balena-io-modules/etcher-sdk · GitHub](https://github.com/balena-io-modules/etcher-sdk/blob/master/examples/multi-destination.ts) and run it with the `ts-node` package, though that requires you to clone the etcher-sdk repository and install the development resources first
