Page 1 of 1 1
Topic Options
#169352 - 2006-10-13 04:23 PM DEL & RD annoyances
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Just annoyances I've been wondering about:

Why doesn't DEL $Path\*.* remove subfolders?

Why can't RD delete non-empy directories?

The effect of this is tiresome enumerations if you want something deleted...
_________________________
The tart is out there

Top
#169353 - 2006-10-13 04:32 PM Re: DEL & RD annoyances
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
Quote from kix2010.doc
Quote:


RD
Action
Removes the directory specified. Note: the directory must be empty for this command to succeed, unless the ‘/s’ option is used.

/s Removes specified directory and all files and subdirectories below it.


Syntax
RD "directory" [/s]

Remarks
Check the value of @ERROR to see if RD was successful.





Top
#169354 - 2006-10-13 05:12 PM Re: DEL & RD annoyances
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
ah, was sitting with the scriptlogic KiXhelp451.chm here. Seems like RD is 'already' fixed then

Edited by masken (2006-10-13 05:12 PM)

Top
#169355 - 2006-10-13 05:51 PM Re: DEL & RD annoyances
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Yes. KiX 4.53 should be working just fine. There are multiple posts about it and I've tested it and it seems to work for all the scenarios I tested.

I also spoke with SL and they say they should be updating the help file soon.


Edited by NTDOC (2006-10-13 05:52 PM)

Top
#169356 - 2006-10-13 06:41 PM Re: DEL & RD annoyances
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh...
just to note, del shouldn't delete folders.
it's a file deletion command and thus should not ever delete any dirs.

Top
#169357 - 2006-10-14 12:58 PM Re: DEL & RD annoyances
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
to me DEL standa for Delete, not "delete files only"...

?

Top
#169358 - 2006-10-14 01:14 PM Re: DEL & RD annoyances
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
lol.
it actually is short for delete.

anyhow, go to your manual and look up what it says.
or command prompt and type:
Del /?

Top
#169359 - 2006-10-15 03:06 AM Re: DEL & RD annoyances
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Maken,

Most of these types of commands were designed to perform what the DOS version does.

DOS version of DEL is only for file. Always has been, probably always will be.

RD or REMDIR were for use in DOS for removing Directories.
(there was no such thing as "folders" until the Candy OS' came along)

Top
#169360 - 2006-10-15 11:37 AM Re: DEL & RD annoyances
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and there is a logical meaning as well.
del is for deleting information but directory doesn't have any. only the files it contains have some.
directory was and still is just a way to organise the information.

Top
#169361 - 2006-10-15 04:33 PM Re: DEL & RD annoyances
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
now Jooel is an annoyance by moving my thread

Is Jooel a file or folder? hmm...

Trying to get some new thinking in here...


Edited by masken (2006-10-15 04:34 PM)

Top
#169362 - 2006-10-15 04:36 PM Re: DEL & RD annoyances
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh, you trying to say I moved your annoyance?
I could have done that but think someone else managed to do it before me.

Top
#169363 - 2006-10-15 07:06 PM Re: DEL & RD annoyances
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I moved it. Someone have a problem with that?
Top
#169364 - 2006-10-15 08:00 PM Re: DEL & RD annoyances
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Well it's common netiquette to give an explanation so that one knows who moved it and why. Now I blamed Jooel

Edited by masken (2006-10-15 08:01 PM)

Top
#169365 - 2006-10-15 08:35 PM Re: DEL & RD annoyances
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, if this was in suggestions, the rules say only suggestions are allowed and discussion about them.
iirc.

so, this does not belong to such forum and thus there is no explanation required for the move.
imho.

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.08 seconds in which 0.037 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org