Re: Access denied
From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 11/13/04
- Next message: Al Dunbar [MS-MVP]: "Re: Conditional <script> in .wsf ?"
- Previous message: Al Dunbar [MS-MVP]: "Re: <resource> elements in WSCs"
- In reply to: Capitan: "Access denied"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 13 Nov 2004 10:42:12 -0700
"Capitan" <anonymous@discussions.microsoft.com> wrote in message
news:09f501c4c8cf$e71735e0$3501280a@phx.gbl...
> I found this snipit of script online searching the
> newsgroups, and for some reason I get an access denied
> error on the following line when running it as the local
> admin on an XP pro machine.
>
> objFSO.DeleteFile("c:\Documents and Settings\" &
> strUsername & "\Local Settings\Temp\*.*"), DeleteReadOnly
>
> Why would I be able to delete files in here manually, but
> my script be denied access? Thanks in advance for any
> help.
Assuming that the script is running in the context of your account that has
the necessary privileges (not running from an ASP page, is it?), it could be
that:
- no files happen to match *.* at the time the script ran;
- some of the files are locked.
/Al
- Next message: Al Dunbar [MS-MVP]: "Re: Conditional <script> in .wsf ?"
- Previous message: Al Dunbar [MS-MVP]: "Re: <resource> elements in WSCs"
- In reply to: Capitan: "Access denied"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|