Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't delete files via filesystem fcs (WinXPPro, IIS 5.1) 2

Status
Not open for further replies.

mellthy

Programmer
Dec 6, 2001
17
CZ
Hi,

I want to delete a file using this absolutely simple script:

Code:
path = "deleteme.txt"
set fso=Server.CreateObject("Scripting.FileSystemObject")
fso.DeleteFile path,true

It works without a problem on my webhosting server. But when I try it at home (WinXPPro, IIS 5.1), the browser obviously doesn't get an answer from the server, there is an endless loading of the script file in the status bar.

I don't know, where the problem is. Some file access rights are set wrongly?

Thanks for help, Ganymed
 
faq333-5089

Maybe that will do it.

Note: FAQ only created and mainly known due to some of our finest in this forum always reminding at least myself of this overlooked possibility.

Highest on that list: Thanks Tarwn!!

___________________________________________________________________

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page faq333-3811
 
I've tried to turn off my firewall, but it didn't work out. Any more suggestions?
 
You have to explcitly turn off the script protection. I've found turning off the firewall doesn't really do any good. I'm almost thinking the "script protection" isn't anything of the sort, that maybe it changes an internal variable that MS made available. thus turning off the firewall doesn't change that setting, you have to actually turn off the "script protection".
It's also posible that this is in your Virus Protection not your firewall, I can't remember for certain (it's been a long time since I have had to config a web server).

-T


01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
It's in Virus Protection, I've already find it, turned it off and it works perfectly.

Thx
 
Cool, I'll have to try and remember it correctly from now on :)

01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111
The never-completed website:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top