"Keith" wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
: "Rob Meade" <ro********@NO-SPAM.kingswoodweb.net> wrote in message
: news:Td*******************@text.news.blueyonder.co .uk...
: > "Keith" <@.> wrote ...
: >
: >> Using the code:
: >>
: >> Set File = CreateObject("Scripting.FileSystemObject")
: >> ImagePath =
: >>
Server.MapPath("..\..\..\sections\ezine\editions\i mages\articlethumbs\")
: >> IssueNum = (RS_Content.Fields.Item("CON_Issue_Number").Value)
: >> Image = (RS_Content.Fields.Item("CON_Image").Value)
: >> ImagePath = ImagePath & "\" & IssueNum & "\" & Image
: >> File.DeleteFile(ImagePath)
: >>
: >> Everything I do shows that the recordset contains the correct values,
but
: >> the delete still gives me the following error:
: >
: > I dont remember seeing the other thread, and perhaps its already been
: > suggested, but what is displayed if you trying:
: >
: > Response.Write ImagePath prior to File.DeleteFile(ImagePath) etc (dont
: > type
: > in what you want, paste in what appears etc)
: >
: > Regards
: >
:
: It returns what I expected it to - the path to the file on the server
: incuding filename and extension.
That's great. Can we see it?
: This is what is so confusing - I KNOW that the values are there - it just
: doesn't seem to want to use them.
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp