NTDOCAdministrator
(KiX Master)
2005-05-27 03:01 AM
RD has not been updated

I know that the MD/COPY/DEL/MOVE commands were enhanced and/or had switches added to them to work more like thier command-line counter parts, however the RD command still does not work anything like the command-line version.

The Windows command-line version has this.

RD /?
Removes (deletes) a directory.

RMDIR [/S] [/Q] [drive:]path
RD [/S] [/Q] [drive:]path

/S Removes all directories and files in the specified directory
in addition to the directory itself. Used to remove a directory
tree.

/Q Quiet mode, do not ask if ok to remove a directory tree with /S


The KiXtart RD command has no switches and if there are any files in the folder it won't work at all. The DEL command in KiXtart does not appear to have any switch or method to remove the Folders, but will remove the files. But that can now leave you with sub-folders without any files and no easy KiX built-in method to remove them.

I would like to suggest the addition/update of RD to behave like the command-line version does, before KiXtart 4.5 goes into a released version soon.
 
And before anyone puts in their 2 cents - Yes, I know we have UDFs for this, and you can SHELL and you can call COM objects, but think since the other file manipulations in this category now work similar to their command-line versions that RD should as well.

Thanks.
 


ShawnAdministrator
(KiX Supporter)
2005-05-27 04:37 AM
Re: RD has not been updated

Here-here, I will add my support to this too. Can't count how many times I've had to shell-out to RD 'cause the builtin RD command doesn't do the whole job.

Chris S.
(MM club member)
2005-05-27 02:16 PM
Re: RD has not been updated

My two pence. I agree.

Mart
(KiX Supporter)
2005-05-29 09:36 PM
Re: RD has not been updated

Very useful indeed.
Two extra pence in the basket.


Howard Bullock
(KiX Supporter)
2005-05-30 01:13 AM
Re: RD has not been updated

Yes, please update...

Lee Wilmott
(Starting to like KiXtart)
2005-05-31 03:39 PM
Re: RD has not been updated

I would just like to add my support for better "RD" options!

Lee


iffy
(Starting to like KiXtart)
2005-06-16 08:47 PM
Re: RD has not been updated

/me donates a handful of cents to support the RD upgrade

NTDOCAdministrator
(KiX Master)
2005-07-05 02:13 AM
Re: RD has not been updated

Now that KiXtart 4.50 has gone to a Released status I would like to bring this back up again and ask that RD be updated as explained in this post.
 


NTDOCAdministrator
(KiX Master)
2005-07-22 06:24 PM
Re: RD has not been updated

Bump... Please fix RD in next beta

Les
(KiX Master)
2005-07-22 06:56 PM
Re: RD has not been updated

There is no need to bump this until there IS another beta and as we now have KiX 2010, my guess is it might be a while.

Bryce
(KiX Supporter)
2005-07-22 06:59 PM
Re: RD has not been updated

is KiXtart 2010 the "official" name? i thought that we were using 4.50

NTDOCAdministrator
(KiX Master)
2005-07-22 07:15 PM
Re: RD has not been updated

Well Ruud said that he would start a new beta approximately 2 weeks after the final was released. Thus placed this post at top so that Ruud doesn't have to pour through multiple other posts before finding it, so (imho) I think it does need a bump
 


Les
(KiX Master)
2005-07-22 07:27 PM
Re: RD has not been updated

Is it not sufficient for you to maintain the sticky in Suggestions? I don't want everyone bumping topics here just because they can.

Ruud van Velsen
(Hey THIS is FUN)
2005-12-20 09:24 AM
Re: RD has not been updated

Just to confirm "RD /S" will be in the first beta of 4.52.

More news later.

Ruud


NTDOCAdministrator
(KiX Master)
2005-12-20 11:11 AM
Re: RD has not been updated

YOHOO - YAHOO

Thanks Ruud


LonkeroAdministrator
(KiX Master Guru)
2005-12-22 05:47 PM
Re: RD has not been updated

COOL!

ShawnAdministrator
(KiX Supporter)
2005-12-22 05:50 PM
Re: RD has not been updated

NICE!

NTDOCAdministrator
(KiX Master)
2006-01-06 01:19 AM
Re: RD has not been updated

Ruud,

The new RD /s command does not currently work like the CMD.EXE RD /s does. Currently the KiXtart RD /s will not do anything if any of the files in the folder are in use.

The RD /S from CMD.EXE will remove everything except the files in use.

As an example if you had a folder structure with 10,000 files and 200+ folders and only 1 file was in use, KiXtart would do nothing with the RD /S

Using RD /S from CMD.EXE would remove everything except that one file and the main folder it'self (which is understandable) but at least the other 9,999 files and 200 folders got removed.

Thanks and hope to see an update soon.


LonkeroAdministrator
(KiX Master Guru)
2006-01-06 01:35 AM
Re: RD has not been updated

wonder...
I think there should be /C switch too.
even though you can destroy a system with shell "%comspec% /c rd %windir% /S" I'm not sure kixtart rd should work like that...


NTDOCAdministrator
(KiX Master)
2006-01-06 02:36 AM
Re: RD has not been updated

Well could give it a /Q then but I would rather not cripple the command because someone didn't know how to script. Could easily damage a system with many other commands as well just like every language out there. Moving into the realm of "protecting the administrator from himself" is an area that I'd rather not get into. This is an scritping tool, not an OS

Update the manual to reflect that one should properly check with something like LEN or other method to confirm that one is removing the correct folder in case a VAR is not properly filled as expected, and show some examples of WHY and HOW.


LonkeroAdministrator
(KiX Master Guru)
2006-01-06 02:41 AM
Re: RD has not been updated

think you are right.
consistency with the existing is more important than protecting us from ourselfes.


LonkeroAdministrator
(KiX Master Guru)
2006-01-06 10:29 PM
Re: RD has not been updated

Done in 4.52 Beta 2.

doc, I also removed this from sticky.


NTDOCAdministrator
(KiX Master)
2006-01-06 11:53 PM
Re: RD has not been updated

No problem.. We need to review the Suggestions page soon and update it again maybe after 4.52 beta 2

LonkeroAdministrator
(KiX Master Guru)
2006-01-07 12:13 AM
Re: RD has not been updated

now?

NTDOCAdministrator
(KiX Master)
2006-01-07 12:25 AM
Re: RD has not been updated

After some testing

NTDOCAdministrator
(KiX Master)
2006-01-07 12:50 AM
Re: RD has not been updated

Well my testing indicates that the new RD /S works quite well.

As mentioned in the beta readme file
DANGER:
Use Caution! This command is quite powerful as is the built in RD from CMD.EXE and can easily cause a system failure if used incorrectly. Make sure you're vars return what you expect.


NTDOCAdministrator
(KiX Master)
2006-01-07 05:24 AM
Re: RD has not been updated

Found an issue with the new RD /s command.


If the folder to be removed is empty then RD /s won't remove that folder. If you place a single file into the folder then it will remove the file and folder.

RD /S should remove the folder whether or not it is empty unless there are open files preventing it.
 


NTDOCAdministrator
(KiX Master)
2006-01-14 12:19 PM
Re: RD has not been updated

Ruud,

Posted in Suggestions that the new /P switch for MOVE and DEL works great in my testing.

Hopefully you can get the RD updated soon for beta 3 with any other updates (such as the manual documentation) you've been working on so that we can have a 4.52 RELEASE

Thanks again for all your hard work and dedication.