var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: My Documents Folder
how can i get the path to the My Documents folder across different windows platforms?
For what purpose? The path to my documents is always "C:\Documents and Settings\CurrentUserNameGoesHere\My Documents". Maybe the current user name is what you really need to find?
i'm printing pdf files to the folder and some people are on 2k and some are on XP.
Last edited by michelin man; 11-28-05 at 14:34.
So if you pull the network userid from a system object or API call you can then build your path as required
You can't guarantee the path won't change on different OS or in different languages. Therefore you shouldn't hard code the path.
Instead consider this:
Set objShell = CreateObject("WScript.Shell")
strMyDocsPath = objShell.SpecialFolders("MyDocuments")
Set objShell = Nothing