|
本帖最后由 江南一根葱 于 2021-6-26 22:14 编辑
如果只是tinypxe随便玩玩,tinypxe官方完整包里有个discover.zip,就是艹艹说的小工具
可以在pe下执行,里面也有现成的批处理,内容如下
@echo off
for /f %%i in ('discover.exe') do set ip=%%i
echo %ip%
for /f %%i in ('discover.exe share_name') do set share_name=%%i
echo %share_name%
for /f %%i in ('discover.exe share_username') do set share_username=%%i
echo %share_username%
for /f %%i in ('discover.exe share_password') do set share_password=%%i
echo %share_password%
rem net use * /delete
rem net use z: /delete
echo mounting \\%ip%\%share_name%
net use z: \\%ip%\%share_name% /user:%share_username% %share_password% |
|