PowerShell script to list files from an external drive

Job ID: 33972214

Budget: $30 – $250 CAD

Hi,

* I need a .ps1 (PowerShell) script + a .bat file to execute it with Windows ;

* This script read all the files names from I:\ drive ; be careful, files can be in folders ;

* This script extracts all the ID from the files names ; the file names can have different extensions but all look like : film-2021-47-na-l-etoile-de-noel-189457.tar, or film-2021-47-na-l-etoile-de-noel-189457.mov, or film-2021-47-na-l-etoile-de-noel-189457.mxf, or film-2021-47-na-l-etoile-de-noel-189457.mp4... the ID is the number at the end, after the last "-" For exemple, in this exemple, the ID is 189457 ;

* Then this script get the name of the external drive ;

* Finally, every 1 second, for each ID, the script calls a web page with the ID and the name of the drive like : https://test.com/api/majLTO.php?id={ID}&name={drive name}
Related categories: PHP Script Install Shell Script Powershell