|
Related Topics:
| ASP Appn: ADODB.Connection Is OK on XP#1, Fails on XP#2 - Hope you guys can suggest where to start looking. I've loaded subject app on a new XP notebook, gotten IIS's dirs and ODBC defined OK - AFAIK. The new XP is at SP#1 with 282010, the old XP isn't. The problem is that I can't get past the first..
file name not logged w/ custom 404 error script - Hello, I have created a custom 404 error page which is an ASP script. The script can determine the requested page (by looking at and then process the request as intended. However when I look in the web log file, I see the name..
Script Debugger - I develop mostly ASP and have used the debugging flags to trouble shoot problems. Recently the debugging flags stopped With the script debugger and debugging flags on I can run a page with an error but the script
script problem in IIS6 - The server is Windows 2003 with IIS 6 I have the following simple code in the file contains: var strVal =..
Launching a background script from php in Windows/IIS - Hi, I'm trying to build a PHP page which launches another php script to be run in the The web page should return while the script may run for 10 minutes or I'm getting all kinds of weird..
|
|
|
Next: IIS: Need IISState log help
|
| Author |
Message |
External

Since: Sep 10, 2003 Posts: 3
|
(Msg. 1) Posted: Wed Sep 10, 2003 7:16 pm
Post subject: ADODB.Fields error '800a0bb9' in a script Archived from groups: microsoft>public>scripting>vbscript, others (more info?)
|
|
|
Im getting the error
ADODB.Fields error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
In the following script to copy and rename the latest file in a webcam
folder. Any ideas why this is failing?
<%
Dim objFSO, rsFSO, objFolder, File, varFileName
Set rsFSO = Server.CreateObject("ADODB.Recordset")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("C:\Documents and
Settings\Administrator\My Documents\My Pictures\ImageStudio\Album\Motion
Images\")
rsFSO.Fields.Append "Name", adVarChar, 200 -----Error occurs on this line.
rsFSO.Fields.Append "Type", adVarChar, 200
rsFSO.Fields.Append "DateCreated", adDate
rsFSO.Fields.Append "DateLastAccessed", adDate
rsFSO.Fields.Append "DateLastModified", adDate
rsFSO.Fields.Append "Size", adInteger
rsFSO.Fields.Append "TotalFileCount", adInteger
rsFSO.Open
For Each File In objFolder.Files
'hide any file that begins with the character to exclude
If (Left(File.Name, 1)) <> Exclude Then
rsFSO.AddNew
rsFSO("Name") = File.Name
rsFSO("Type") = File.Type
rsFSO("DateCreated") = File.DateCreated
rsFSO("DateLastAccessed") = File.DateLastAccessed
rsFSO("DateLastModified") = File.DateLastModified
rsFSO("Size") = File.Size
rsFSO.Update
End If
Next
rsFSO.Sort = "DateLastModified"
Set objFolder = Nothing
rsFSO.MoveFirst()
set varFileName = rsFSO("Name").Value
objFSO.CopyFile "C:\Documents and Settings\Administrator\My Documents\My
Pictures\ImageStudio\Album\Motion Images\" & varFileName,
"C:\Inetpub\Scripts\Webcam\Images\CurrentImage.jpg"
%>
<img src="\images\CurrentImage.jpg">
Thanks in advance.
--
_______________________________________________
DC
"You can not reason a man out of a position he did not reach through reason"
"Don't use a big word where a diminutive one will suffice."
"A man with a watch knows what time it is. A man with two watches is
never sure." Segal's Law<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: ADODB.Fields error '800a0bb9' in a script |
|
| Back to top |
|
 |  |
External

Since: Sep 10, 2003 Posts: 1
|
(Msg. 2) Posted: Wed Sep 10, 2003 8:43 pm
Post subject: Re: ADODB.Fields error '800a0bb9' in a script [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Did you include the adovbs.inc where adVarChar and the rest is defined ?
PL.
"DC" <sws99dsc.TakeThisOut@rdg.ac.uk> skrev i meddelandet news:3F5F4067.7050003@rdg.ac.uk...
> Im getting the error
>
> ADODB.Fields error '800a0bb9'
>
> Arguments are of the wrong type, are out of acceptable range, or are in
> conflict with one another.
>
> In the following script to copy and rename the latest file in a webcam
> folder. Any ideas why this is failing?
>
> <%
> Dim objFSO, rsFSO, objFolder, File, varFileName
> Set rsFSO = Server.CreateObject("ADODB.Recordset")
> Set objFSO = CreateObject("Scripting.FileSystemObject")
> Set objFolder = objFSO.GetFolder("C:\Documents and
> Settings\Administrator\My Documents\My Pictures\ImageStudio\Album\Motion
> Images\")
>
> rsFSO.Fields.Append "Name", adVarChar, 200 -----Error occurs on this line.
> rsFSO.Fields.Append "Type", adVarChar, 200
> rsFSO.Fields.Append "DateCreated", adDate
> rsFSO.Fields.Append "DateLastAccessed", adDate
> rsFSO.Fields.Append "DateLastModified", adDate
> rsFSO.Fields.Append "Size", adInteger
> rsFSO.Fields.Append "TotalFileCount", adInteger
> rsFSO.Open
>
> For Each File In objFolder.Files
> 'hide any file that begins with the character to exclude
> If (Left(File.Name, 1)) <> Exclude Then
> rsFSO.AddNew
> rsFSO("Name") = File.Name
> rsFSO("Type") = File.Type
> rsFSO("DateCreated") = File.DateCreated
> rsFSO("DateLastAccessed") = File.DateLastAccessed
> rsFSO("DateLastModified") = File.DateLastModified
> rsFSO("Size") = File.Size
> rsFSO.Update
> End If
> Next
>
> rsFSO.Sort = "DateLastModified"
>
> Set objFolder = Nothing
> rsFSO.MoveFirst()
> set varFileName = rsFSO("Name").Value
>
> objFSO.CopyFile "C:\Documents and Settings\Administrator\My Documents\My
> Pictures\ImageStudio\Album\Motion Images\" & varFileName,
> "C:\Inetpub\Scripts\Webcam\Images\CurrentImage.jpg"
> %>
>
> <img src="\images\CurrentImage.jpg">
>
> Thanks in advance.
>
>
> --
> _______________________________________________
>
> DC
>
> "You can not reason a man out of a position he did not reach through reason"
>
> "Don't use a big word where a diminutive one will suffice."
>
> "A man with a watch knows what time it is. A man with two watches is
> never sure." Segal's Law
><!-- ~MESSAGE_AFTER~ --> >> Stay informed about: ADODB.Fields error '800a0bb9' in a script |
|
| Back to top |
|
 |  |
External

Since: Sep 10, 2003 Posts: 3
|
(Msg. 3) Posted: Thu Sep 11, 2003 3:24 pm
Post subject: Re: ADODB.Fields error '800a0bb9' in a script [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
PL wrote:
> Did you include the adovbs.inc where adVarChar and the rest is defined ?
Nope, Ihev now and it works fine.
Cheers,
--
_______________________________________________
DC
"You can not reason a man out of a position he did not reach through reason"
"Don't use a big word where a diminutive one will suffice."
"A man with a watch knows what time it is. A man with two watches is
never sure." Segal's Law<!-- ~MESSAGE_AFTER~ --> >> Stay informed about: ADODB.Fields error '800a0bb9' in a script |
|
| Back to top |
|
 |  |
|