- 帖子
- 56
- 积分
- 91
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2010-5-2
|
3楼
发表于 2011-10-11 18:45
| 只看该作者
我现在用的是临时文件法……有更好解决方法么?
DEL "%temp%"\Run.bat
setlocal enabledelayedexpansion
set "r=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
for /f "skip=2 tokens=3" %%b in ('reg query "%r%" /v "desktop"') do (
echo copy "E:\Program Files\EDU\直接采集.txt" "%%b"\直接采集.txt>>"%temp%\run.bat
echo DEL "%temp%"\Run.bat>>"%temp%\run.bat
)
"%temp%\run.bat |
|