How do I rename setup.exe using a batch file

September 30, 2011 at 05:26:39
Specs: Windows 7
How do I rename setup.exe to nosetup.exe using a batch file. I want it to rename if it exists and do not rename if nosetup.exe exists.

C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\Office Setup Controller\setup.exe


See More: How do I rename setup.exe using a batch file

Report •


#1
September 30, 2011 at 05:53:33
@echo off

if exist "C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\Office Setup Controller\nosetup.exe" goto eof

ren "C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\Office Setup Controller\setup.exe" nosetup.exe

:eof


Report •
Related Solutions


Ask Question