Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

browse button to pop up a filesystem on the desktop

Status
Not open for further replies.

kavi98

Programmer
Joined
Dec 14, 2000
Messages
48
Location
US
I am trying to generate a browse button on a form which pops up the filesystem of the current desktop.


Thanks
Kavisha.
 
You cant access the FileSystemObject from the browser, without being a trusted application of some sort, or using a signed script.

If you are speaking about Windows Scripting Host jscript, you can access them through the FileSystemObject. Find out more here:

jared@aauser.com
 
you may also be talking about <input type=&quot;file&quot;> jared@aauser.com
 
umm, maybe you want <input type=&quot;file&quot;> otherwise, you won't be able to get the current desktop of the clients machine.
 
That's not true. You can access the filesystem easily. Or rather, you can display the filesystem easily, but not manipulate it or send data back to the server.

I think you want something like this:

function open_explorer()
{
expwin = window.open(&quot;file://c:\&quot;,&quot;explore&quot;,&quot;width=500,height=500&quot;);
}

<input type=&quot;button&quot; onClick=&quot;open_explorer()&quot;>

Of course that won't work if you're on a Mac or Linux or some other OS without a C:\ drive and filesystem functions integrated into the web browser.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Yeah, didn't think he meant that, because he couldn't do anything with it :) jared@aauser.com
 
Thanks for the help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top