在某批处理中看到的:- ver|findstr "5\.[0-9]\.[0-9][0-9]*" >NUL && (
- rd /s/q "%AllUsersProfile%\Application Data\kuwodata\kwshow" 2>NUL
- rd /s/q "%AllUsersProfile%\Application Data\kuwodata\kwmusic2013\Update" 2>NUL
- rd /s/q "%AllUsersProfile%\Application Data\kuwodata\kwmusic2013\ModuleData\ModNotify" 2>NUL
- del/f/q "%AllUsersProfile%\Application Data\kuwodata\kwmusic2013\ModuleData\ModMusicTool\conf.txt" >NUL 2>NUL
- md "%AllUsersProfile%\Application Data\kuwodata\kwmusic2013\ModuleData\ModMusicTool" 2>NUL
- echo f|copy /y "Bin\Data\conf.txt" "%AllUsersProfile%\Application Data\kuwodata\kwmusic2013\ModuleData\ModMusicTool" >NUL 2>NUL
- attrib +r "%AllUsersProfile%\Application Data\kuwodata\kwmusic2013\ModuleData\ModMusicTool\conf.txt" 2>NUL
- echo. >"%AllUsersProfile%\Application Data\kuwodata\kwmusic2013\ModuleData\ModNotify" 2>NUL
- echo. >"%AllUsersProfile%\Application Data\kuwodata\kwmusic2013\Update" 2>NUL
- echo. >"%AllUsersProfile%\Application Data\kuwodata\kwshow" 2>NUL
- )
-
- ver|findstr "\<6\.[0-9]\.[0-9][0-9]*\> \<10\.[0-9]\.[0-9][0-9]*\>" >NUL && (
- rd /s/q "%ProgramData%\kuwodata\kwshow" 2>NUL
- rd /s/q "%ProgramData%\kuwodata\kwmusic2013\Update" 2>NUL
- rd /s/q "%ProgramData%\kuwodata\kwmusic2013\ModuleData\ModNotify" 2>NUL
- del/f/q "%ProgramData%\kuwodata\kwmusic2013\ModuleData\ModMusicTool\conf.txt" >NUL 2>NUL
- md "%ProgramData%\Kuwodata\kwmusic2013\ModuleData\ModMusicTool" 2>NUL
- echo f|copy /y "Bin\Data\conf.txt" "%ProgramData%\Kuwodata\kwmusic2013\ModuleData\ModMusicTool" >NUL 2>NUL
- echo y|icacls "%ProgramData%\kuwodata\kwmusic2013\ModuleData\ModMusicTool\conf.txt" /c /grant "Everyone:(R,RX)" /inheritance:r >NUL 2>NUL
- echo. >"%ProgramData%\kuwodata\kwmusic2013\ModuleData\ModNotify" 2>NUL
- echo. >"%ProgramData%\kuwodata\kwmusic2013\Update" 2>NUL
- echo. >"%ProgramData%\kuwodata\kwshow" 2>NUL
- )
复制代码 一直不明白【ver|findstr "5\.[0-9]\.[0-9][0-9]*"】和【ver|findstr "\<6\.[0-9]\.[0-9][0-9]*\> \<10\.[0-9]\.[0-9][0-9]*\>"】的含义
请各位大佬答疑解惑一下 |