Shaishav,
You can use the WSH to get this information:
oShell = CREATEOBJECT("Wscript.Shell")
?oShell.SpecialFolders("Desktop")
?oShell.SpecialFolders("MyDocuments")
SpecialFolders() allows you to query the following folders:
AllUsersDesktop
AllUsersStartMenu
AllUsersPrograms
AllUsersStartup
Desktop
Favorites
Fonts
MyDocuments
NetHood
PrintHood
Programs
Recent
SendTo
StartMenu
StartupB
Templates
HTH
>Hi Everyone,
>
>Is there anyway I can get the path to windows desktop folder. Generally its under Windows folder, and I can get it by using
>
>GETENV("WINDIR") and additing "\Desktop" to it. However, if the user profiles are active, this is not the right way. Can any one help me.
>
>Or is there anyway I can get path to My Document folder??
>
>
>TIA.
Daniel