

In PowerShell, you can access it via the Shell.Application COM server: (New-Object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Pathįor a list of all supported ( shell:-prefixed) folder identifiers, see this article. Only the WinAPI's Known Folders API allows retrieval of the designated downloads folders in a robust fashion, without relying on fixed relationships with other known folders: GetFolderPath() method to ask for special known folders, the designated folder for downloads is - surprisingly - NOT among them. NET framework and can therefore use the System.Environment type's. While PowerShell has virtually unlimited access to the.


(New-Object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Path The naive answer, which typically but not always works:.
