@SpriggsySpriggs As per your advice - my usb stick is now "alive" again
[ You are not allowed to view this attachment ]
I ran your combined program and the first part unmounted j:\ but still "listed" in file explorer but of course not "accessible" to view files (previously your first program did not "list" J:\ in file explorer)
[ You are not allowed to view this attachment ]
NOW (with usb stick not physically moved) allowed your combined program to continue
[ You are not allowed to view this attachment ]
BUT the device is STILL NOT READY.
NOW manually recovered J:\ to put J:\ back to normal
[ You are not allowed to view this attachment ]
Am I still missing something in the process?