Re: [Freedos-user] deleting/overwriting files from bat file
> If I want to delete/overwrite files from a script(batch), then either way, > it will interogate me:"are you sure?y/n"; > but I want the script to run unattended; is there a way to make it fully > 'hands free'?, possibly with a redirection > away from the keyboard, or some such thing? Try AJZAP at http://www.bookcase.com/library/software/msdos.util.dir.html -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] deleting/overwriting files from bat file;
Hi, > If I want to delete/overwrite files from a script(batch), then either way, > it will interogate me:"are you sure?y/n"; > but I want the script to run unattended; is there a way to make it fully > 'hands free'?, possibly with a redirection > away from the keyboard, or some such thing? I think DELTREE has a way for this, maybe some /Y option. > PS: when deleting a file, there > is usually a 'deleted copy' of it > that can be 'undeleted', but when overwriting a file, is the original > definately destroyed? In theory, yes. In practice, if your disk is in fact a flash storage (USB stick etc) then load balancing in the hardware might mean that the overwriting data is written to a fresh sector and the old sector is just put back into some pool and not actually over- written with the data you use to overwrite... This problem is independent of which filesystem and which operating system you use. Eric -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] deleting/overwriting files from bat file;
kurt godel wrote: > If I want to delete/overwrite files from a script(batch), then either > way, it will interogate me:"are you sure?y/n"; > but I want the script to run unattended; is there a way to make it > fully 'hands free'?, The following example works fine from a .BAT file in unattended mode: COPY C:\IN-TRAY\D*.* C:\LASTRUN COPY C:\IN-TRAY\*.FIN C:\LASTRUN DEL C:\IN-TRAY\D*.* DEL C:\IN-TRAY\*.FIN -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user