I know this is very simple, but can't 'see' the error.
I want a batch file to look for an MSI "install123.msi" and truncate the version to "install.msi" so I can point SCCM at "install.msi" and not have to keep up on version numbers as they evolve.
This batch file works fine the first go-round in that is truncates the name. My problem is that I can't get it to not delete the truncated file if a new "install124.msi" does NOT exist.
Thanks so much, script follows...
rem see if new version exists
if not exist f:\path\setupnx?????.msi (goto end)
if exist f:\path\setupnx?????.msi (
rem delete the existing/old msi
rem rename the new MSI so that SCCM can use it.
move f:\path\setupnx*.msi f:\path\SetupNX.msi