Re: Access denied

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 11/13/04


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



Relevant Pages

  • Re: $ENV{CONTENT_LENGTH} / STDIN
    ... >> reason for a form in the first place. ... than about every other aspect of writing a script. ... > insecure may be perfect in the lab, but useless in the real world. ... hard-coded validation, rather than hard-coded names. ...
    (comp.lang.perl.misc)
  • Re: Is there a correct place to put javascript within a html file?
    ... The HTML specification tells you where script elements are permitted: ... script files have downloaded and if they're all in the head ... ... like the sensible thing to do; at least there's a reason for it. ... javascript is positioned just before the then the various html ...
    (comp.lang.javascript)
  • Re: Barbara Thiering Refuted!
    ... the particular script. ... John Byrne did. ... THIS HYPOTHESIS for the reason...what was the reason, ... capable of looking up the straight lines and crunching the numbers. ...
    (sci.archaeology)
  • Re: Barbara Thiering Refuted!
    ... the particular script. ... John Byrne did. ... THIS HYPOTHESIS for the reason...what was the reason, ... capable of looking up the straight lines and crunching the numbers. ...
    (sci.archaeology)
  • Re: Linux Home Server HOWTO - Open For Review
    ... I did want to add some type of monitoring here, but I found the script ... Thats a fair call.. ... simple are a hard match to start with, thats the reason I at least ... I think it would be suitable to include a package ...
    (Fedora)