[Solved] Display, Choose and Delete files

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Ranjit
Posts: 20
Joined: 26 Nov 2015 20:39

[Solved] Display, Choose and Delete files

#1 Post by Ranjit » 29 Nov 2015 23:30

I have a question which I explain.

I have WinXp3 with latest updates. I have 4 partitions on my hard drive. I have a few diectories on various drives, which I often need to check and delete a few files (created by various appilcations).

Example :

Directory of D:\Instal\A.Setup\EDrive\Program Files\DoubleCmd

29/11/15 07:40 <DIR> .
29/11/15 07:40 <DIR> ..
03/01/15 20:33 992,768 7z.dll
29/06/13 07:22 81,920 bz2.dll
10/10/11 13:21 385,229 DCUpdater.exe
29/11/15 07:33 400 dcupdater.ini
29/11/15 07:33 256 dcupdater.po
28/11/15 16:23 <DIR> doc
29/11/15 07:30 20,280 doublecmd.err
12/07/15 13:55 7,720,467 doublecmd.exe
29/11/15 08:30 0 doublecmd.ext
10/07/11 20:42 6,517 doublecmd.ext.example
29/11/15 08:30 35,339 doublecmd.xml
12/07/15 13:55 531,200 doublecmd.zdli
16/08/15 10:11 65,008 highlighters.xml
29/11/15 08:30 3,440 history.xml
28/11/15 16:23 <DIR> language
21/12/14 22:10 151,552 liblzma.dll
29/11/15 08:30 6,359 MultiArc.Ini
28/11/15 16:23 <DIR> pixmaps
19/08/12 18:11 460 pixmaps.txt
28/11/15 16:23 <DIR> plugins
29/11/15 08:30 23 Pwd.Ini
29/11/15 08:30 1,293 Session.Ini
29/11/15 08:30 11,930 shortcuts.scf
04/03/15 16:45 219,224 unrar.dll
19/08/15 00:18 0 zip.ini
21 File(s) 10,233,665 bytes
6 Dir(s) 490,112,851,968 bytes free

and many alike in different drives/directories.

The directories to which I go are fixed. I often go to those directories, list file and delete unrequired files by Dos 'Del' command.
I would be delighted if some kind of automation is suggested to automize this process either on dos window or advanced window (preferred) with following options :
1. To let me choose target directories.
2. To list contents of directory.
3. Let me select files to be deleted.
4. Get my confirmation and delete them by batch file
5. Move to next directory.

I may mention here that this Forum changed my life. I am so enthrilled by the support of experts here. So I ask for a job which is complex to me.

Thank you all, in advance.
Last edited by Ranjit on 30 Nov 2015 09:04, edited 1 time in total.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Display, Choose and Deleie files

#2 Post by foxidrive » 30 Nov 2015 07:30

Ranjit wrote:I would be delighted if some kind of automation is suggested to automize this process either on dos window or advanced window (preferred) with following options :
1. To let me choose target directories.
2. To list contents of directory.
3. Let me select files to be deleted.
4. Get my confirmation and delete them by batch file
5. Move to next directory.


It seems like you are after a way to select and delete files manually, but to do it from a defined list of folders.
Batch scripts aren't as suitable for that kind of task - a file manager might be a better option.

My favourite file manager is Total Commander by Ghisler, which is uncrippled shareware and has a very generous upgrade policy for registered users - it's free forever - and has been around and regularly updated since Windows 9x.

Ranjit
Posts: 20
Joined: 26 Nov 2015 20:39

Re: Display, Choose and Delete files

#3 Post by Ranjit » 30 Nov 2015 09:04

OK sir, let me try that if i have some kind of problem I come back.
Thanks tons Sir.

Post Reply