新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
阿里云添加路由的Windows批處理文件
發(fā)現(xiàn)一段很好的學(xué)習(xí)bat程序的示例代碼,分享給大家,具體代碼如下:

在成都網(wǎng)站建設(shè)、網(wǎng)站建設(shè)過程中,需要針對客戶的行業(yè)特點、產(chǎn)品特性、目標(biāo)受眾和市場情況進行定位分析,以確定網(wǎng)站的風(fēng)格、色彩、版式、交互等方面的設(shè)計方向。創(chuàng)新互聯(lián)還需要根據(jù)客戶的需求進行功能模塊的開發(fā)和設(shè)計,包括內(nèi)容管理、前臺展示、用戶權(quán)限管理、數(shù)據(jù)統(tǒng)計和安全保護等功能。
@echo off
route print -4 "10.0.0.0" | find "10.0.0.0" > route_list
set gw=
for /F "tokens=1-5" %%a in ('type route_list') do (
if not "%%c" == "" ( set gw=%%c )
)
if "%gw%" == "" ( echo "fail to get eth0 default gw" && goto error)
route print -4 100.64.0.0 | find "%gw%" > NUL
if not "%errorlevel%" == "0" (
route -p add 100.64.0.0 mask 255.192.0.0 %gw% > NUL 2>&1
)
if not "%errorlevel%" == "0" ( echo "faild to add route 100.64.0.0/10" && goto error)
:success
del route_list
echo "add 100.64.0.0/10 success !"
timeout 10
exit 0
:error
timeout 10
exit 1
以上所述是小編給大家介紹的阿里云添加路由的windows批處理文件,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對主機寶貝網(wǎng)站的支持!
分享文章:阿里云添加路由的Windows批處理文件
分享鏈接:http://www.5511xx.com/article/cdoioco.html


咨詢
建站咨詢
