I have a batch file on Windows XP which takes one argument: a zip file name that was created with 7-zip.
This file contains a single MySQL backup file inside:
I would like to restore the database given this zip file. First I extract it to a temporary directory like this:
path_to_7zip\7z e "%~1" -otemp_dir
I would like to have something like this (where
extracted_file_name would be
path_to_mysql\mysql < extracted_file_name
How do I work out the name of the extracted file (i.e.
What should I supply as input instead of
extracted_file_name if I don't know the file name that is inside the zip file?