windows cmd script

@echo off


set /p ta="更改為    :"

echo 您輸入的ip為%ta%
set /p ans="確認請按Y,否則請按N    :"


if %ans%==Y (
type c:\test1.txt | find /v "ip=" > c:\test2.txt
move c:\test1.txt c:\testbak
move c:\test2.txt c:\test1.txt
echo ip=%ta% >> test1.txt
echo 更改成功
pause
exit)

echo 請重新執行程式
pause

沒有留言:

張貼留言

非看不可

【超好用】貼圖快速裁切,極速上架。

輕鬆自製 LINE 貼圖!免安裝的超強網頁版「簡單的圖片工具」推薦 裁切、去背、標註一氣呵成,專為貼圖創作者打造的高效神器 很多創作者在製作 LINE 貼圖時,最常遇到的痛點就是: 尺...