|I could use a bit of help.|
It's a drop bat...drag and drop a file into the batch file.
echo file: %1
echo 7za a -t7z files.7z %1 >> temp.bat
What is created is
7za a -t7z files.7z G:\bats\zip.txt with a bat extension.
Runs and zips but with the name of files.7z
My question is ...How can I replace the files.z (the name of the zip file) with the name of the file. I need to chop off g:\bats\ in the name and leave it in the path.
So the created bat reads as 7za a -t7z zips.7z G:\bats\zip.txt
Hope someone has an idea.