Ask a Question related to ASP, Design and Development.
-
Roger Withnell #1
Deleting a file with the FileSystemObject
Going round in circles trying to do this. If I use:
Set objFS = Server.CreateObject
("Scripting.FileSystemObject")
objFS.DeleteFile (vPath & "AndreaBremner.gif")
the page hangs on the objFS.DeleteFile
and if I use:
Set objFS = Server.CreateObject
("Scripting.FileSystemObject")
Set objFile = objFS.GetFile (server.mappath
("Temp\AndreaBremner.gif"))
objFile.Delete
it hangs on the Set objFS.
What am I doing wrong?
Thanking you in anticipation.
Roger Withnell Guest
-
Deleting a file
Is it possible to delete a single file from Adobe or acrobat? -
Deleting File Info
It seems like your first response is correct, though I do not see any way in the Batch command to accomplish this. An example of what I want to... -
File size remains the same after deleting pages
I am using AA 5.0 I am working with a 200 pages PDF file and need to delete, let's say 100 pages. After doing so, the file size remains the same.... -
Error deleting file or folder
After using the Search Companion, I get the following error message when I try to delete multiple files. Error Deleting File or Folder Cannot... -
Deleting images from file browser
Harley, The file browser will not perform certain tasks on images located on the desktop. This is because on certain OSes the desktop is a virtual... -
Ray at #2
Re: Deleting a file with the FileSystemObject
Go to [url]www.aspfaq.com[/url] and enter a search phrase of: file system object hangs
Ray at work
"Roger Withnell" <roger@upperbridge.co.uk> wrote in message
news:027b01c34a3f$3818a480$a401280a@phx.gbl...> Going round in circles trying to do this. If I use:
> Set objFS = Server.CreateObject
> ("Scripting.FileSystemObject")
> objFS.DeleteFile (vPath & "AndreaBremner.gif")
> the page hangs on the objFS.DeleteFile
> and if I use:
> Set objFS = Server.CreateObject
> ("Scripting.FileSystemObject")
> Set objFile = objFS.GetFile (server.mappath
> ("Temp\AndreaBremner.gif"))
> objFile.Delete
> it hangs on the Set objFS.
>
> What am I doing wrong?
>
> Thanking you in anticipation.
>
>
>
Ray at Guest
-
Aaron Bertrand - MVP #3
Re: Deleting a file with the FileSystemObject
> What am I doing wrong?
Running client anti-virus software on a server.
[url]http://www.aspfaq.com/2180[/url]
Aaron Bertrand - MVP Guest
-
Roger Withnell #4
Re: Deleting a file with the FileSystemObject
Right on Aaron. Wish I'd tried it on the operational server before
panicking and posting my problem
Let me ask another dumb question.
In session 1, an image is pulled out of a database and saved to server
hard disk and when the page has finished with it it deletes the copy on
the hard disk.
Meanwhile, session 2 is using the same image ie the same path and
filename and hasn't finished with the image when session 1 deletes it.
Does IIS, ASP or somebody else take care of this eventuality or do I
have a problem?
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Roger Withnell Guest



Reply With Quote

