Sorry, I'm not sure if this is the right forum. I have a windows command script which adds "like-named" files (with an appended suffix) to a zip file.
I now need to revise the script to accept similar names, but with a twist. Before I had:
filename_YYY.zip
and I added
filename_YYY_SUFFIX001.pdf
and everything was dandy!
Now I need to make it work with
filename_YYY.zip
and adding
filename.YYY_SUFFIX001.pdf
The underscore (_) has changed to a period (.)
Is there a way to revise my code to accept this new pdf filename?
Thanks,
Jeff
Code:
for %%f in (*.zip) do "c:\program files\7-zip\7z.exe" a %%~nf.zip %%~nf_SUFFIX001.pdf
I now need to revise the script to accept similar names, but with a twist. Before I had:
filename_YYY.zip
and I added
filename_YYY_SUFFIX001.pdf
and everything was dandy!
Now I need to make it work with
filename_YYY.zip
and adding
filename.YYY_SUFFIX001.pdf
The underscore (_) has changed to a period (.)
Is there a way to revise my code to accept this new pdf filename?
Thanks,
Jeff