|
Written by UltraTWO
|
|
Read more IT articles here
Active Directory: Login script to find and replace a file how to stepsDo you need to search and replace a file from the dc server or fileserver to your user's local C drive? Read on ...
This is how you can do it @echo off REM Check Unity File1.exe if exist c:\files\File1.exe goto fileReplacexp GOTO end_fileReplace :fileReplacexp echo "File1.exe file exists" >> c:\File1Replace.txt copy c:\files\File1.exe c:files\File1.exe.old replace \\dc\scripts2\File1.exe c:\files /s :end_fileReplace
|