how to get the download path using VBSCRIPT

683 Views Asked by At

I need to get the download path of a desktop using vbscript. So I need a syntax like

MyDoc = Ws.SpecialFolders("Mydocuments").

Have you any idea ??

Best regards

1

There are 1 best solutions below

0
Étienne Laneville On

Try the following

Dim sDesktopPath
Set objShell = Wscript.CreateObject("Wscript.Shell")
sDesktopPath = objShell.SpecialFolders("Desktop")