Ask a Question related to ASP Components, Design and Development.
-
Malph #1
Not ALL file information with the Shell.Application object in ASP
The code below works fine on several Windows (2003/XP) IIS servers and shows
all available file information of the images folder below the currect folder.
However at my ISP's servers the code just shows the basic info (filename,
size, dates) and doesn't show things like Title, Author, Dimensions
============================
<%
rootpath = Server.MapPath("./")
path = Server.MapPath("images/")
%>
<%
dim fs, folder
Set objShell = CreateObject ("Shell.Application")
Set objFolder = objShell.Namespace(path)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim arrHeaders(39)
For i = 0 to 39
arrHeaders(i) = objFolder.GetDetailsOf (objFolder.Items, i)
Next
For Each strFileName in objFolder.Items
Response.Write( "=================================<br />" &
brstrFileName & "<br />")
For i = 0 to 39
'If i <> 9 then
Response.Write(arrHeaders(i) & ": " & objFolder.GetDetailsOf
(strFileName, i) ) & "<br />" & vbCrLf
'End If
Next
Next
%>
==========================
My ISP runs W2003 WebEdition servers.
Please help me to tell my ISP what he should do to solve my problem, because
he doesn't have clue (neither do I).
Malph Guest
-
Getting Bookmark destination information using IAC application
Hi, we are developing an application in that we are opening pdf file in an user application window(not in acrobat or reader)but we want to use... -
Shell file completion
Hello, I was learning regular expressions, and I noticed that the shell has something similar (but it is different from regular expressions). ... -
application object vs includes file
Is it better to : - use an application object to store my database connection string or - use an include file on each asp page that needs to... -
Calling Acrobat file from WScript.Shell ActiveX object
WinXP, Acrobat 6 When I type the name of a PDF file at the Windows command prompt, the file opens properly. Then I create the following JavaScript... -
create Shell Object hangs
I try to execute a shell command from ASP with: response.write("start") Set wshShell = CreateObject("WScript.Shell") wshShell.Run "notepad" Set...



Reply With Quote

