POSIX rm.exe command

R

Robert Ferraro

Regarding mal-formed directories, the following Microsoft web page suggests:

"You can delete (unlink) these files using a simple, native POSIX program.
For example, the Windows Resource Kit includes such a tool, Rm.exe."

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q120716

Is the Rm.exe program available separately for download? If not, where can
we download the resource kit from?


TIA,

Robert Ferraro.
 
J

John John

The posix utilities are available here:
ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/

Look in the nt3xx files, read the enclosed readme files for more
information. For your information it's not in the nt4 folder or reskit
available there. Other than that it is also in the Windows Services for
Unix but that is a huge 220 plus MB download.

John
 
R

Robert Ferraro

Hi h,

Thank for replying, I downloaded UnxUtils.zip.

I'm trying to delete a mal-formed directory; according to the Microsoft
instructions, the rm.exe command should do it -- but it doesn't,
unfortunately.

I inadvertently created a subdirectory that looks like this:

root
bad dir..

And bad dir.. just won't go away! <g>


- Robert.


| Hello,
|
| I don't know why it has to be a native posix program, because posix uses
| win32 subsystem. Anyway, I don't know where to get posix programs. You
| can get (win32) rm.exe here:
|
| http://unxutils.sourceforge.net/
|
| In article <#sIc6x#[email protected]>, (e-mail address removed)
| says...
| > Regarding mal-formed directories, the following Microsoft web page
suggests:
| >
| > "You can delete (unlink) these files using a simple, native POSIX
program.
| > For example, the Windows Resource Kit includes such a tool, Rm.exe."
| >
| > http://support.microsoft.com/default.aspx?scid=kb;EN-US;q120716
| >
| > Is the Rm.exe program available separately for download? If not, where
can
| > we download the resource kit from?
| >
| >
| > TIA,
| >
| > Robert Ferraro.
| >
| >
| >
|
| --
|
| h.wulff
| [dont send me an email]
 
H

h.wulff

Hello,

I don't know what happend to your system, but it sounds strange! :p

If no process has an open handle to that bad dir, you should be able to
delete the dir. What is the error message?

I could delete everything so far with the rm.exe. At least the command

rm -R root

should do it. But be careful: "-R" means root and all sub dir are
deleted!
 
R

Robert Ferraro

Hi John,

Thanks very much for the link. I was able to use rm.exe to remove the
mal-formed directories.

I did learn you can't run this command from an XP machine--I ran it from a
networked nt2000, and finally it worked.

Best regards,

Robert.



| The posix utilities are available here:
| ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/
|
| Look in the nt3xx files, read the enclosed readme files for more
| information. For your information it's not in the nt4 folder or reskit
| available there. Other than that it is also in the Windows Services for
| Unix but that is a huge 220 plus MB download.
|
| John
|
| h.wulff wrote:
| > Hello,
| >
| > I don't know why it has to be a native posix program, because posix uses
| > win32 subsystem. Anyway, I don't know where to get posix programs. You
| > can get (win32) rm.exe here:
| >
| > http://unxutils.sourceforge.net/
| >
| > In article <#sIc6x#[email protected]>, (e-mail address removed)
| > says...
| >
| >>Regarding mal-formed directories, the following Microsoft web page
suggests:
| >>
| >>"You can delete (unlink) these files using a simple, native POSIX
program.
| >>For example, the Windows Resource Kit includes such a tool, Rm.exe."
| >>
| >>http://support.microsoft.com/default.aspx?scid=kb;EN-US;q120716
| >>
| >>Is the Rm.exe program available separately for download? If not, where
can
| >>we download the resource kit from?
| >>
| >>
| >>TIA,
| >>
| >>Robert Ferraro.
| >>
| >>
| >>
| >
| >
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top