Hi@all

i use the Function
[code]
set oShell = CreateObject("Shell.Application")

set oFolder = oShell.BrowseForFolder(0, "File load", 16384,rootdir)

[/code]
on a HTML Page
and if i try to get a file from "c:\" or "d:\" (no subfolders), i get a
error.
What can i do, ca i use a other function to get the file or ???,
thx for help,

cya Thommy

(sorry my english is not the best)

Re: get File from "C:\" by McKirahan

McKirahan
Mon Nov 29 09:50:32 CST 2004

"Thomas Bender" <Thomas.Bender@de.bosch.com> wrote in message
news:cofea9$5lv$1@ns2.fe.internet.bosch.com...
> Hi@all
>
> i use the Function
> [code]
> set oShell = CreateObject("Shell.Application")
>
> set oFolder = oShell.BrowseForFolder(0, "File load", 16384,rootdir)
>
> [/code]
> on a HTML Page
> and if i try to get a file from "c:\" or "d:\" (no subfolders), i get a
> error.
> What can i do, ca i use a other function to get the file or ???,
> thx for help,
>
> cya Thommy
>
> (sorry my english is not the best)
>

http://dbforums.com/t885454.html

Find: "' Now handle any errors. I have defined one special case; ' (1) The
selected folder is a drive."



Re: get File from "C:\" by jeff

jeff
Mon Nov 29 15:21:57 CST 2004

On Mon, 29 Nov 2004 16:13:04 +0100, "Thomas Bender"
<Thomas.Bender@de.bosch.com> wrote:

>i use the Function
>[code]
>set oShell = CreateObject("Shell.Application")
>
>set oFolder = oShell.BrowseForFolder(0, "File load", 16384,rootdir)
>
>[/code]
>on a HTML Page
>and if i try to get a file from "c:\" or "d:\" (no subfolders), i get a
>error.
>What can i do, ca i use a other function to get the file or ???

It would help if you tell us the error. Also, what do you mean by
"get a file"? Do you want to open the file? Download it? Use it in
another program?

Since it's a web page, a shell is problematic. You may find the File
System Object in ASP is more suited to your task.

Jeff

Re: get File from "C:\" by Hal

Hal
Mon Nov 29 19:21:09 CST 2004


"Thomas Bender" <Thomas.Bender@de.bosch.com> wrote in message
news:cofea9$5lv$1@ns2.fe.internet.bosch.com...
> Hi@all
>
> i use the Function
> [code]
> set oShell = CreateObject("Shell.Application")
>
> set oFolder = oShell.BrowseForFolder(0, "File load", 16384,rootdir)
>
> [/code]
> on a HTML Page
> and if i try to get a file from "c:\" or "d:\" (no subfolders), i get a
> error.
> What can i do, ca i use a other function to get the file or ???,
> thx for help,
>

If this script is client-side (in script tags on the html page) - then it
won't be able to open a file.
The browser that allows this will be immediately taken out back and
thrashed.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.799 / Virus Database: 543 - Release Date: 11/19/2004