


I am trying to download files from a site, sadly they are be generated to include the Epoch Unix timestamp in the file name.

It's a way of doing things you might ordinarily do in the command prompt, but automates some tasks, which means you don't have to write so much code. Batch file programming is a way of making a computer do things simply by creating, yes, you guessed it, a batch file.Because the batch file and the PowerShell script are in the same location and have the same name, %~dpn0.ps1 will be translated to the PowerShell script’s complete file path. When run from a batch file, %~dpn0 returns the batch file’s drive letter, folder directory, and file name (without extension). The %~dpn0 variable is used in the PS1 file.
