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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FSO delete file works only for PDFs

Status
Not open for further replies.

way2many

Technical User
Nov 28, 2003
139
US
HI,
I have c:\invoices folder on WIN XP PRO SP2
For some reason my FSO script can delete only PDF files from this or any folder on C: drive

Trying to delete DOC, XLS or TXT files gives me:

Microsoft VBScript runtime (0x800A0046)
Permission denied

Turning anti-virus & firewall off doesn't help

Any ideas why only PDFs can be deleted?

Thanks
 
If memory serves me well, you should get 'Permission denied' anywhere where IUSR_* account has not enough rights. This correlation with .PDF files is maybe... coincidence?

------
"There's a man... He's bald and wears a short-sleeved shirt, and somehow he's very important to me. I think his name is Homer."
(Jack O'Neill, Stargate)
[banghead]
 
Thanks,
How do I set correct permissions for this folder?
From Win Help:
"Right-click the file or folder, click Properties, and then click the Security tab."

I'm doing as above but I can't see this "Security" tab.

There are 4 tabs:
General
Sharing
Web Sharing
Customize

I checked that C: drive has NTFS
 
Found it.
I needed to uncheck "Use Simple File Sharing" in the folder options.
Working now.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top