Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: finding the desktop or "my documents" folder?


Message #1 by "Cory Harrison" <charrison@c...> on Fri, 11 Jan 2002 11:16:56 -0800
Since you obviously only need this for windows you can use the WScript 
objects, like this:
var oShell = new ActiveXObject("WScript.Shell");
var sDesktopPath = oShell.SpecialFolders("DeskTop");
var sMyDocsPath = oShell.SpecialFolders("MyDocuments");

HTH
Phil
> Is there any way to find the desktop or "my documents" folder in 
JavaScript?
> I didn't think so, but if anybody would know it would be you guys.  We're
> trying to use J-upload, but it just defaults to showing the drives I
> believe.
> 
> 
> 
> thanks,
> Cory Harrison
> Internet Developer
> Computer Services Inc.
> charrison@c...
>  (xxx) xxx-xxxx  x10643
> 
> 

  Return to Index