Ask a Question related to ASP Database, Design and Development.
-
Stas #1
Path not found
Hello All!
I found function for enumerate files in special folder and pasted in my asp
page, but Server generate error.
Who could tell me why server IIS 5.0 generate error, and how I must input
path for [url]http://host/pdf?[/url]
<%
function ShowFolderFileList(folderspec)
{
var fso, f, f1, fc, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFolder(folderspec);
fc = new Enumerator(f.files);
s = ""; for (; !fc.atEnd(); fc.moveNext())
{
s += fc.item();
s += "";
}
return(s);
}
var str;
str = ShowFolderFileList('http://localhost/pdf'); or str =
ShowFolderFileList('/pdf');
^^^^^^^^^^^^^^^ error at this string Path not found
Response.Write(str);
%>
Thanks.
Stas.
Stas Guest
-
clipping path shows ouside path in quark
I'm making paths on silo'd objects on white backgrounds to place on colored backgrounds in quark 4. Operating pshop 6.01 in os 9.2. I put the path on... -
Why is nothing found in @INC path ?!?!
Hi, I'm trying to build a CGI PerL web app hosted on Fedora/Apache machine, making XML requests to a Windows/IIS machine (No, I have no choice in... -
Convert text path back to regular path
Im sure this has been covereed beofre , but I want to take an oddly shaped pathy that I have converted to a text path, and revert it to a regualr... -
#25444 [Opn->Bgs]: php4isapi.dll path to win.ini doesn't load from current path.
ID: 25444 Updated by: sniper@php.net Reported By: ict at primus dot ca -Status: Open +Status: Bogus... -
OSX: translate path with slashes to path with colons and volume name
Hi all, I need to convert a UNIX-path to a Mac OS X path. For example: /Applications/Chess.app matches Macintosh HD:Applications:Chess.app ... -
Aaron Bertrand [MVP] #2
Re: Path not found
FileSystemObject works on LOCAL paths. So, maybe you meant
Server.MapPath("/pdf/")
--
Aaron Bertrand
SQL Server MVP
[url]http://www.aspfaq.com/[/url]
"Stas" <stsn2000@mail.ru> wrote in message
news:OUBLgx04DHA.2528@TK2MSFTNGP09.phx.gbl...asp> Hello All!
> I found function for enumerate files in special folder and pasted in my> page, but Server generate error.
> Who could tell me why server IIS 5.0 generate error, and how I must input
> path for [url]http://host/pdf?[/url]
> <%
> function ShowFolderFileList(folderspec)
> {
> var fso, f, f1, fc, s;
> fso = new ActiveXObject("Scripting.FileSystemObject");
> f = fso.GetFolder(folderspec);
> fc = new Enumerator(f.files);
> s = ""; for (; !fc.atEnd(); fc.moveNext())
> {
> s += fc.item();
> s += "";
> }
> return(s);
> }
> var str;
> str = ShowFolderFileList('http://localhost/pdf'); or str =
> ShowFolderFileList('/pdf');
> ^^^^^^^^^^^^^^^ error at this string Path not found
>
> Response.Write(str);
> %>
> Thanks.
> Stas.
>
>
Aaron Bertrand [MVP] Guest
-
Martin Honnen #3
Re: Path not found
Stas wrote:
Try> I found function for enumerate files in special folder and pasted in my asp
> page, but Server generate error.
> Who could tell me why server IIS 5.0 generate error, and how I must input
> path for [url]http://host/pdf?[/url]
> <%
> function ShowFolderFileList(folderspec)
> {
> var fso, f, f1, fc, s;
> fso = new ActiveXObject("Scripting.FileSystemObject");
> f = fso.GetFolder(folderspec);
> fc = new Enumerator(f.files);
> s = ""; for (; !fc.atEnd(); fc.moveNext())
> {
> s += fc.item();
> s += "";
> }
> return(s);
> }
> var str;
> str = ShowFolderFileList('http://localhost/pdf'); or str =
> ShowFolderFileList('/pdf');
> ^^^^^^^^^^^^^^^ error at this string Path not found
ShowFolderFileList(Server.MapPath('/pdf')
--
Martin Honnen
[url]http://JavaScript.FAQTs.com/[/url]
Martin Honnen Guest



Reply With Quote

