Batch to Bash
Grizzly
Real_Grizz_Adams at yahoo.co.uk
Fri May 19 06:44:12 UTC 2023
Hi All
I get asked to recover / salvage files from old or dead PC's and have over time
built a generic batch to do a good job (only needing the odd tweak for specific
cases)
Air code
supply target drive address (drive letter)
clear screen
loop through all drives / partitions
if drive/partition not the target copy each file type to target in original
structure (in directory named for source partition)
it uses Xcopy (I may move to XXCopy when I have time) which I think can be
replaced (with findname/cp, zip/unzip or rsync) on Ubuntu, I'm okay with
simple(ish) bash scripts** but I don't think I can at the moment do my Dos
batch justice in bash form, does anyone fancy taking a run at it I can post
(OL) it may even be of use to someone who needs to do the job on a unfamiliar
windows box
** my update Wine works well (or did before WineHQ made a few changes I have
yet to include)
More information about the ubuntu-users
mailing list