D
D
Dolvers2019-05-29 12:26:42
PowerShell
Dolvers, 2019-05-29 12:26:42

Is there a way to run a PowerShell script located on a USB drive the moment it is inserted into the PC?

Is there a way to run a PowerShell script located on a USB drive the moment it is inserted into the PC? It is necessary to copy all PDF files from the PC to the USB drive, but this is not a question. The only thing I don't know is how to run the script as soon as the USB stick is inserted. And the file D:\test\script.ps1
and if it's not difficult then E:\test\script.ps1 ale a separate script
Can anyone help?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question