Script to copy to temp folder and recopy after installation
I need a script where it should look for 2 ini files in C:\windows, and move it to the temp folder. And after an application installs, it should copy those files back from temp to c:\abc
I can make this as 2 different scripts, one before install and after.
I do no have much scripting knowledge,
Please guide me. This is an ASAP project.
Thanks in advance.
Community Chosen Answer
you can do this as a batch file
you can use the if exist statement to check for the files also at the beginning if really needed.
but you can do it this way
start /wait md c:\installtemp
start /wait xcopy c:\windows\ddmscpic.ini c:\installtemp /q
start /wait xcopy c:\windows\stnop.ini c:\installtemp /q
start /wait misexec /i a.msi /qn or whatever type your install is with proper silent switches
start /wait xcopy c:\installtemp\*.* c:\windows /q /y
start /wait rd c:\installtemp /s /q