Losing my marbles today and examples on google not quite what I want.
Just need a simple script/batch file to delete a list of FOLDERS and all there contents using a text file for the folder names.
Think I need IF for DO
Just trying to finish my dreamcast SD card off tried a few examples but just got in a mess.
So I have a folder say called c:base and in that is lots of folders called 01 02 03 04 05 300 odd of them !!
Then I have a folder which fixes ones which did not work in the base image .. has folders like 02 05 . It only has folders which the game was fixed etc ! This folder needs to completely replace the one in base.
So I would want to create a text file which I could paste the list of folders in that I want to replace e.g
01
114
Then a script that would Delete these folders and contents from cbase from the list it reads from a text file
I'd then simply want to copy all the files and folders from c:updates to cbase so would get all the folders and there is a gdemu.ini file as well !
Its the delete of files which I need most help with as could just copy paste the updated folders and one ini file with file explorer
So the updates folder contains the folders and a single ini
21/11/2020 11:24 <DIR> .
21/11/2020 11:24 <DIR> ..
20/11/2020 12:52 <DIR> 01
20/11/2020 12:52 <DIR> 04
20/11/2020 12:52 <DIR> 114
20/11/2020 12:53 <DIR> 115
20/11/2020 12:53 <DIR> 116
20/11/2020 12:54 <DIR> 128
20/11/2020 12:54 <DIR> 145
20/11/2020 12:54 <DIR> 156
20/11/2020 12:55 <DIR> 214
20/11/2020 12:56 <DIR> 225
20/11/2020 12:56 <DIR> 227
20/11/2020 12:57 <DIR> 230
20/11/2020 12:57 <DIR> 234
20/11/2020 12:57 <DIR> 247
20/11/2020 12:58 <DIR> 263
The folder list I would like to simply put in like this rather than a direct path, then there is a *.ini at end but I can just paste over that !
Any help appreciated as losing my marbles !
The fact the bloody SD card I bought is 500mb short for the image has also been frustarting
Luckily another card of same size had extra space !!!
Just need a simple script/batch file to delete a list of FOLDERS and all there contents using a text file for the folder names.
Think I need IF for DO
Just trying to finish my dreamcast SD card off tried a few examples but just got in a mess.
So I have a folder say called c:base and in that is lots of folders called 01 02 03 04 05 300 odd of them !!
Then I have a folder which fixes ones which did not work in the base image .. has folders like 02 05 . It only has folders which the game was fixed etc ! This folder needs to completely replace the one in base.
So I would want to create a text file which I could paste the list of folders in that I want to replace e.g
01
114
Then a script that would Delete these folders and contents from cbase from the list it reads from a text file
I'd then simply want to copy all the files and folders from c:updates to cbase so would get all the folders and there is a gdemu.ini file as well !
Its the delete of files which I need most help with as could just copy paste the updated folders and one ini file with file explorer
So the updates folder contains the folders and a single ini
21/11/2020 11:24 <DIR> .
21/11/2020 11:24 <DIR> ..
20/11/2020 12:52 <DIR> 01
20/11/2020 12:52 <DIR> 04
20/11/2020 12:52 <DIR> 114
20/11/2020 12:53 <DIR> 115
20/11/2020 12:53 <DIR> 116
20/11/2020 12:54 <DIR> 128
20/11/2020 12:54 <DIR> 145
20/11/2020 12:54 <DIR> 156
20/11/2020 12:55 <DIR> 214
20/11/2020 12:56 <DIR> 225
20/11/2020 12:56 <DIR> 227
20/11/2020 12:57 <DIR> 230
20/11/2020 12:57 <DIR> 234
20/11/2020 12:57 <DIR> 247
20/11/2020 12:58 <DIR> 263
The folder list I would like to simply put in like this rather than a direct path, then there is a *.ini at end but I can just paste over that !
| 1 |
| 4 |
| 114 |
| 115 |
| 116 |
| 128 |
| 145 |
| 156 |
| 214 |
| 225 |
| 227 |
| 230 |
| 234 |
| 247 |
| 263 |
| 276 |
| 296 |
| 313 |
| 319 |
| 354 |
| 372 |
| 373 |
| 377 |
| 392 |
| 394 |
| 40 |
| 50 |
| 66 |
| GDEMU.ini |
Any help appreciated as losing my marbles !
The fact the bloody SD card I bought is 500mb short for the image has also been frustarting
Luckily another card of same size had extra space !!!