Re: Trying to Delete Directories -- Access Denied

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Kyle (kyle_st_at_eudoramail.com)
Date: 02/15/04


Date: Sun, 15 Feb 2004 01:34:50 GMT


"Pegasus \(MVP\)" <I.can@fly.com> wrote in news:#hu3L9m8DHA.3008
@TK2MSFTNGP09.phx.gbl:

>
> "Kyle" <kyle_st@eudoramail.com> wrote in message
> news:Xns948E58007A477kylesteudoramail.com@167.206.3.2...
>> "Pegasus \(MVP\)" <I.can@fly.com> wrote in
>> news:O67Gxye8DHA.3200@TK2MSFTNGP09.phx.gbl:
>>
>> >
>> > "Kyle" <kyle_st@eudoramail.com> wrote in message
>> > news:Xns948DEEB8E7EDCkylesteudoramail.com@167.206.3.3...
>> >> "Pegasus \(MVP\)" <I.can@fly.com> wrote in
>> >> news:uPjNQtd8DHA.2736@TK2MSFTNGP10.phx.gbl:
>> >>
>> >> >
>> >> > "Kyle" <kyle_st@eudoramail.com> wrote in message
>> >> > news:Xns948DDC000100kylesteudoramail.com@167.206.3.2...
>> >> >> Hi,
>> >> >>
>> >> >> My Windows 2000 server got tagged because of FTP anonymous was
>> >> >> wide open.
>> >> > I
>> >> >> have since disabled the service. I am trying to clean up the
>> >> >> tagged directories. I was able to delete some directories using
>> >> >> dir /x at a command prompt, as well as the RM command. I still
>> >> >> have some directories but when I try to delete them, I get an
>> >> >> access denied. I am logged in as Admininstrator. When I look at
>> >> >> the properties in Windows Explorer for each directory,their is
no
>> >> >> security tab. How do I delete the directory?
>> >> >>
>> >> >> Any help would be appreciated.
>> >> >>
>> >> >>
>> >> >> Thanks,
>> >> >> Kyle
>> >> >
>> >> > You write "I was able to delete some directories using dir /x at
a
>> >> > command prompt, as well as the RM command." I struggle to
>> >> > see how you could do this, seeing that "dir" will only list
files
>> >> > and folders, not delete them, and that there is no "RM" command
>> >> > under Windows 2000. You also don't say if this partition is a
>> >> > FAT/FAT32 or an NTFS partition (which is important for access
>> >> > restrictions).
>> >> >
>> >> > Try this command:
>> >> >
>> >> > rd /s "c:\Folde~1" where "Folde~1" is the short file name for
>> >> > your problem folder. If this does not work, post the full name
>> >> > of the folder here.
>> >> >
>> >> >
>> >> >
>> >>
>> >> Hi,
>> >>
>> >> I used the rm.exe app (available on the Windows2000 Resource Kit.
Dir
>> >> /x listed the short foldernames that appeared to be nameless
folders.
>> >>
>> >> See: http://techrepublic.com.com/5100-6270-1053850.html
>> >>
>> >> The partition is NTFS. The root folder is 333 (I was able to
rename
>> >> it to that from a longer folder name), but all the subfolders are
>> >> either named aux1 aux2 etc... or lpt1, lpt2 etc... or con1, con2
>> >> etc...
>> >>
>> >> They have no "Security" tab on them (the topmost 333 folder does,
and
>> >> I have full admin permissions on it, but clearly not on its
>> >> subfolders, and the topmost folder's permissions are not flowing
down
>> >> to them). when I try to delete them from the Windows GUI, or from
>> >> console with del, rm, rd etc...I get an Access Denied message.
>> >>
>> >> I deleted a bunch of other bogus directory structures using the
>> >> RM.EXE program, but these are different in that there's an access
>> >> issue.
>> >>
>> >> Thanks,
>> >> Kyle
>> >
>> > Your folders appear to use reserved names. You can get rid of
>> > them by using this syntax:
>> >
>> > rd /s /q \\.\c:\LPT1
>> >
>> > Of course you have to specify the correct location.
>> >
>> >
>> >
>>
>> Hi,
>>
>> Thanks for the info, but no luck.
>>
>> Pasted below is the directory structure I'm referring to, plus the
>> results of the delete attempts using the rd syntax you suggested.
>>
>> Volume in drive E has no label.
>> Volume Serial Number is
>>
>> Directory of E:\temp\867
>>
>> 02/13/2004 08:30a <DIR> .
>> 02/13/2004 08:30a <DIR> ..
>> 02/19/2003 07:53a <DIR> aux0
>> 02/19/2003 07:53a <DIR> aux1
>> 02/19/2003 07:53a <DIR> aux2
>> 02/19/2003 07:53a <DIR> aux3
>> 02/19/2003 07:53a <DIR> aux4
>> 02/19/2003 07:53a <DIR> aux5
>> 02/19/2003 07:53a <DIR> aux6
>> 02/19/2003 07:53a <DIR> aux7
>> 02/19/2003 07:53a <DIR> aux8
>> 02/19/2003 07:53a <DIR> aux9
>> 02/19/2003 07:53a <DIR> com0
>> 02/19/2003 07:53a <DIR> com1
>> 02/19/2003 07:53a <DIR> com2
>> 02/19/2003 07:53a <DIR> com3
>> 02/19/2003 07:53a <DIR> com4
>> 02/19/2003 07:53a <DIR> com5
>> 02/19/2003 07:53a <DIR> com6
>> 02/19/2003 07:53a <DIR> com7
>> 02/19/2003 07:53a <DIR> com8
>> 02/19/2003 07:53a <DIR> com9
>> 02/19/2003 07:53a <DIR> con0
>> 02/19/2003 07:53a <DIR> con1
>> 02/19/2003 07:53a <DIR> con2
>> 02/19/2003 07:53a <DIR> con3
>> 02/19/2003 07:53a <DIR> con4
>> 02/19/2003 07:53a <DIR> con5
>> 02/19/2003 07:53a <DIR> con6
>> 02/19/2003 07:53a <DIR> con7
>> 02/19/2003 07:53a <DIR> con8
>> 02/19/2003 07:53a <DIR> con9
>> 02/19/2003 07:53a <DIR> lpt0
>> 02/19/2003 07:53a <DIR> lpt1
>> 02/19/2003 07:53a <DIR> lpt2
>> 02/19/2003 07:53a <DIR> lpt3
>> 02/19/2003 07:53a <DIR> lpt4
>> 02/19/2003 07:53a <DIR> lpt5
>> 02/19/2003 07:53a <DIR> lpt6
>> 02/19/2003 07:53a <DIR> lpt7
>> 02/19/2003 07:53a <DIR> lpt8
>> 02/19/2003 07:53a <DIR> lpt9
>> 0 File(s) 0 bytes
>> 42 Dir(s) 29,115,990,016 bytes free
>>
>>
>>
>> E:\temp\867>rd /s /q lpt9
>> The system cannot find the file specified.
>>
>> E:\temp\867>rd /s /q LPT9~1
>> Access is denied.
>>
>> E:\temp\867>
>
> You tried
>
> rd /s /q lpt9
>
> but I wrote
>
> rd /s /q \\.\e:\temp\867\LPT1
>
> There is a big difference!
>
>
>

Hi,

Okay, I tried:

rd /s /q \\.\e:\temp\867\LPT1

and still received:

The system cannot find the file specified.

Thanks,
Kyle



Relevant Pages

  • Re: Home network .pub file wont open...
    ... It'll let you move or rename it but not copy it? ... luck. ... | I can access all the other .pub files on this laptop, ...
    (microsoft.public.publisher)
  • Re: HOWTO: File Renaming and Directory Recursion
    ... On 4/1/2004 7:05 PM, Morbus Iff wrote: ... and give full paths to our rename(). ... because File::Find moves through the directory structure unless you ... distracting here, but as a follow-up it would be a good how-to for a ...
    (perl.beginners)
  • Re: FP Crash
    ... Any luck with any ... >files with the .tmp extension. ... >Copy and paste them to another location, rename then ... >Microsoft MVP FrontPage ...
    (microsoft.public.frontpage.client)
  • Re: VBA - Syntax filename rangename for vlookup formula
    ... No luck. ... For the range I am referring to ... Sheet name is correct ... Thomas Day ...
    (microsoft.public.excel.programming)
  • Re: The Snow Blower
    ... bought the cab about 3 years ago during summer clearance sale. ... I was referring to the grocery store part.....with luck, ...
    (rec.outdoors.fishing.fly)