I'm tinkering with a batch program and I'm stuck. I'd like some expert advice:
@echo off
Title=Welcome to Use the Client Foolish Update Program`-`
if exist C:\Xcopyfile.txt del C:\Xcopyfile.txt /q /f
xcopy \\192.168.1.101\客户端\fmis3.0_release :\ygfmis\bin /d /i /s /c /e /h /y > C:\Xcopyfile.txt
for /f "delims=" %%i in (c:\Xcopyfile.txt) do (findstr "*.dll" "%%i" >c:\Regonlyfile.txt)
for /f "tokens=*" %%m in (c:\Regonlyfile.txt) do (
echo. & echo Registering this file: %%m
tregsvr %%m)
endlocal
:end
echo.
echo Registration completed successfully!
Description: The function to be implemented is very simple. It's to copy the client files from the server path to this computer, and only register the dll files, that is, open them with C:\WINDOWS\system32\regsvr32. I'm still in the learning stage, and I don't understand many things. Please help me modify it. I know there's a problem starting from the for loop...
@echo off
Title=Welcome to Use the Client Foolish Update Program`-`
if exist C:\Xcopyfile.txt del C:\Xcopyfile.txt /q /f
xcopy \\192.168.1.101\客户端\fmis3.0_release :\ygfmis\bin /d /i /s /c /e /h /y > C:\Xcopyfile.txt
for /f "delims=" %%i in (c:\Xcopyfile.txt) do (findstr "*.dll" "%%i" >c:\Regonlyfile.txt)
for /f "tokens=*" %%m in (c:\Regonlyfile.txt) do (
echo. & echo Registering this file: %%m
tregsvr %%m)
endlocal
:end
echo.
echo Registration completed successfully!
Description: The function to be implemented is very simple. It's to copy the client files from the server path to this computer, and only register the dll files, that is, open them with C:\WINDOWS\system32\regsvr32. I'm still in the learning stage, and I don't understand many things. Please help me modify it. I know there's a problem starting from the for loop...


