0

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

Hackoo
  • 18,337
  • 3
  • 40
  • 70
YOUSYS
  • 11

1 Answers1

1

Try the following

Dim sDesktopPath
Set objShell = Wscript.CreateObject("Wscript.Shell")
sDesktopPath = objShell.SpecialFolders("Desktop")
Étienne Laneville
  • 4,697
  • 5
  • 13
  • 29