The first works fine, and stores the path - but I would prefer to not use the windows scripting host as I don't know what script blocking stuff the security in a client's place may be implemented...
strPath = CreateObject("WScript.Shell").SpecialFolders("Desktop")
vs:
strPath = fso.GetSpecialFolder(DesktopDirectory)
What is wrong with the bottom line? I keep getting, merely "C:\windows" rather than the user's path to desktop...?
strPath = CreateObject("WScript.Shell").SpecialFolders("Desktop")
vs:
strPath = fso.GetSpecialFolder(DesktopDirectory)
What is wrong with the bottom line? I keep getting, merely "C:\windows" rather than the user's path to desktop...?