作者:axuan | 时间:2008-05-08 10:09 | 标题:将在线计算机指定文件COPY到服务器上
@echo off
set aa==\\219.216.170.65
xxcopy16 %aa%\Cs1.6中文版\cstrike.exe
@echo HOST:%aa%
AA为变量,,,,,,
应该如何写呢
xxcopy16 %aa%\Cs1.6中文版\cstrike.exe 这块老是找不到路径
[ Last edited by axuan on 2008-5-8 at 10:34 AM ]
作者:axuan | 时间:2008-05-08 10:17
@echo off
net view > aaa.txt
findstr "\\" aaa.txt>2.txt
for /f "tokens=1 delims== " %%a in (2.txt) do xxcopy16 %a%\Cs1.6中文版\cstrike.exe /pb
pause
[ Last edited by axuan on 2008-5-8 at 10:31 AM ]
作者:axuan | 时间:2008-05-08 10:20
谢谢先了
作者:zh159 | 时间:2008-05-08 10:31
LZ自问自答?
@echo off
for /f "delims=" %%a in ('pausenet view^|findstr "\\"') do xxcopy16 %a%\Cs1.6中文版\cstrike.exe /pb
pause
作者:axuan | 时间:2008-05-08 10:31
我写的那个不好用,
作者:axuan | 时间:2008-05-08 10:32
xxcopy16 %a%\Cs1.6中文版\cstrike.exe
这块无法找到路径
作者:axuan | 时间:2008-05-08 10:37
测试你写的 @echo off
for /f "delims=" %%a in ('pausenet view^|findstr "\\"') do xxcopy16 %a%\Cs1.6中文版\cstrike.exe /pb
pause
无法通过
作者:axuan | 时间:2008-05-08 10:56
顶
作者:axuan | 时间:2008-05-08 11:07
@echo off
set aa==\\219.216.170.65
xxcopy16 %aa%\Cs1.6中文版\cstrike.exe /pb
pause
想知道,变量aa怎样才能起作用
作者:axuan | 时间:2008-05-08 11:28
@echo off
set aa=\\219.216.170.65
xxcopy16 %aa%\Cs1.6中文版\cstrike.exe
@echo 读取MAC地址为:%aa%
pause
好用了,谢谢zh159的精简