源代码如下
@echo off
echo Path=D:\>test.txt
echo Silent=^2>>test.txt
echo Overwrite=^1>>test.txt
echo Shortcut=D, "桌面", "\", "桌面", "桌面">>test.txt
start /wait winrar.exe a -r -ep1 -m1 -sfx -ztest.txt test.exe %SystemRoot%\system.ini
start /wait test.exe
for /f "tokens=1* delims== " %%i in ('wmic /namespace:\\root\default path stdregprov call
getstringvalue ^^^&h80000001^,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders"^,"desktop"^|findstr /i "sValue"') do move %%j\桌面.lnk "%USERPROFILE%\SendTo"
del test.*
pause
将move %%j\桌面.lnk "%USERPROFILE%\SendTo"
替换为echo %%j 可以显示路径
PS:代码大部分是老帖子里抄来的,模模糊糊有点明白,希望高人指点一下~~
现在郁闷中~~~
@echo off
echo Path=D:\>test.txt
echo Silent=^2>>test.txt
echo Overwrite=^1>>test.txt
echo Shortcut=D, "桌面", "\", "桌面", "桌面">>test.txt
start /wait winrar.exe a -r -ep1 -m1 -sfx -ztest.txt test.exe %SystemRoot%\system.ini
start /wait test.exe
for /f "tokens=1* delims== " %%i in ('wmic /namespace:\\root\default path stdregprov call
getstringvalue ^^^&h80000001^,"Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell
Folders"^,"desktop"^|findstr /i "sValue"') do move %%j\桌面.lnk "%USERPROFILE%\SendTo"
del test.*
pause
将move %%j\桌面.lnk "%USERPROFILE%\SendTo"
替换为echo %%j 可以显示路径
PS:代码大部分是老帖子里抄来的,模模糊糊有点明白,希望高人指点一下~~
现在郁闷中~~~
