|
|
|||||||
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. |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
My two pence. I agree. |
||||||||
|
|
|||||||
Very useful indeed. Two extra pence in the basket. |
||||||||
|
|
|||||||
Yes, please update... |
||||||||
|
|
|||||||
I would just like to add my support for better "RD" options! Lee |
||||||||
|
|
|||||||
/me donates a handful of cents to support the RD upgrade |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
Bump... Please fix RD in next beta |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
is KiXtart 2010 the "official" name? i thought that we were using 4.50 |
||||||||
|
|
|||||||
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 |
||||||||
|
|
|||||||
Is it not sufficient for you to maintain the sticky in Suggestions? I don't want everyone bumping topics here just because they can. |
||||||||
|
|
|||||||
Just to confirm "RD /S" will be in the first beta of 4.52. More news later. Ruud |
||||||||
|
|
|||||||
YOHOO - YAHOO Thanks Ruud |
||||||||
|
|
|||||||
COOL! |
||||||||
|
|
|||||||
NICE! |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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... |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
think you are right. consistency with the existing is more important than protecting us from ourselfes. |
||||||||
|
|
|||||||
Done in 4.52 Beta 2. doc, I also removed this from sticky. |
||||||||
|
|
|||||||
No problem.. We need to review the Suggestions page soon and update it again maybe after 4.52 beta 2 |
||||||||
|
|
|||||||
now? |
||||||||
|
|
|||||||
After some testing |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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. |