Hello, I have written excactly your example code. If I execute it, I get:
Application has thrown an uncaught exception and is terminated:
Error: spawn wmic ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
at onErrorNT (node:internal/child_process:478:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
Is it possible that i have not defined cwd? I ddin't get what to write here excactly. Which path should I write here?
cwd: 'path to target location',