What is wrong in my batch file?
echo what is the location of the folder that has the files (e.g C:\x)
set /p file=C:\x
echo what is the name of the file that you are trying to hide in
set /p namefile=picture
echo what is the name of the 7z file that you created (including format)
set /p zip=File2.7z
echo what will be the name of the new picture that will be created containing the files
set /p namehider=newpicture
echo what is the picture's format?
set /p format=PNG
copy /b %namefile%.%format% + %zip% %namehider%.%format%
I am attempting to automate a process that I do manually but can't seem to get the desired result. First i must have 7zip compress a couple files from a specific folder, which, I haven't attempted to write commands for yet (taking suggestions). Next the below is intended to run in CMD using the created zip file and a picture like so
copy /b Picture.png + x.7z NEWPICTURE.png
The product should be deposited back into C:\X