廣告廣告
  加入我的最愛 設為首頁 風格修改
首頁 首尾
 手機版   訂閱   地圖  簡體 
您是第 5543 個閱讀者
 
發表文章 發表投票 回覆文章
  可列印版   加為IE收藏   收藏主題   上一主題 | 下一主題   
undeaduck
數位造型
個人文章 個人相簿 個人日記 個人地圖
路人甲
級別: 路人甲 該用戶目前不上站
推文 x0 鮮花 x2
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片
推文 x0
[求助] 請教批次檔問題?
請教批次檔ftp上傳的部份內容如下:
先寫test.bat:
@echo off
ftp -n -i -s:c.txt 111.1.1.1
c.txt:
user abc abc
cd s:/test
mput s:/d/a/qq.*
by ..

訪客只能看到部份內容,免費 加入會員 或由臉書 Google 可以看到全部內容



[ 此文章被undeaduck在2007-07-21 23:17重新編輯 ]


獻花 x0 回到頂端 [樓 主] From:廣東 | Posted:2007-07-21 15:39 |
undeaduck
數位造型
個人文章 個人相簿 個人日記 個人地圖
路人甲
級別: 路人甲 該用戶目前不上站
推文 x0 鮮花 x2
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

想再請教一個問題就是可不可以把a.bat的變數丟到c.txt中使用呢?
如果可以的話我就可以使用了說
麻煩各位了有點小急的說謝謝


獻花 x0 回到頂端 [1 樓] From:廣東 | Posted:2007-07-22 08:00 |
upside 手機 葫蘆墩家族
個人頭像
個人文章 個人相簿 個人日記 個人地圖
特殊貢獻獎 社區建設獎 優秀管理員勳章
頭銜:反病毒 反詐騙 反虐犬   反病毒 反詐騙 反虐犬  
版主
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

@echo off            
ftp -n -i -s:c.txt 111.1.1.1
c.txt:              
user abc abc          
cd s:/test            
set /p run=請輸入      
mput s:/d/a/%run%.*


爸爸 你一路好走
獻花 x0 回到頂端 [2 樓] From:臺灣和信超媒體寬帶網 | Posted:2007-07-22 11:34 |
undeaduck
數位造型
個人文章 個人相簿 個人日記 個人地圖
路人甲
級別: 路人甲 該用戶目前不上站
推文 x0 鮮花 x2
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

不好意思,謝謝3樓大大的幫助不過不行的說,因為ftp一執行就不會停下
一直做txt裡面的動作故沒有停下來輸入值


獻花 x0 回到頂端 [3 樓] From:廣東 | Posted:2007-07-22 12:26 |
undeaduck
數位造型
個人文章 個人相簿 個人日記 個人地圖
路人甲
級別: 路人甲 該用戶目前不上站
推文 x0 鮮花 x2
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

可否再請教一個問題嗎?就是想請問可否取某一txt中前幾個字串嗎?
是用哪個指令呢?謝謝了

可否再請教一個問題?就是如何把aa*.*的檔案全壓縮在一個壓縮包呢?謝謝


[ 此文章被undeaduck在2007-07-22 13:53重新編輯 ]


獻花 x0 回到頂端 [4 樓] From:歐洲 | Posted:2007-07-22 13:36 |
undeaduck
數位造型
個人文章 個人相簿 個人日記 個人地圖
路人甲
級別: 路人甲 該用戶目前不上站
推文 x0 鮮花 x2
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

可否再請教一個問題,就是想請問批次檔有沒有and or的符號呢?


獻花 x0 回到頂端 [5 樓] From:歐洲 | Posted:2007-07-22 17:24 |
undeaduck
數位造型
個人文章 個人相簿 個人日記 個人地圖
路人甲
級別: 路人甲 該用戶目前不上站
推文 x0 鮮花 x2
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

想請教一個問題就是有沒有解壓縮的批次檔批令,因為知道壓縮的指令但不知道相反過來的指令
另外,想請教壓縮的指令中可不可以給特定的名字呢?謝謝


獻花 x0 回到頂端 [6 樓] From:歐洲 | Posted:2007-07-23 15:32 |
upside 手機 葫蘆墩家族
個人頭像
個人文章 個人相簿 個人日記 個人地圖
特殊貢獻獎 社區建設獎 優秀管理員勳章
頭銜:反病毒 反詐騙 反虐犬   反病毒 反詐騙 反虐犬  
版主
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

推薦你去這個論壇 裡面全是討論 批次檔的教學
http://bbs.verybat...ex.php


爸爸 你一路好走
獻花 x0 回到頂端 [7 樓] From:臺灣 | Posted:2007-07-23 16:21 |
bluecat
數位造型
個人文章 個人相簿 個人日記 個人地圖
路人甲
級別: 路人甲 該用戶目前不上站
推文 x0 鮮花 x0
分享: 轉寄此文章 Facebook Plurk Twitter 複製連結到剪貼簿 轉換為繁體 轉換為簡體 載入圖片

請參考這篇文章: Get user input from batch file
http://www.ericphelps.com/bat...nter.bat.txt

rem This batch file gets a character or word of user input and
rem returns it in the environment variable VALUE. Two tricks are
rem used to accomplish this:
rem
rem (1) The FC (File Compare) command is used to compare two standard
rem     devices -- NUL (nothing) and CON (the console). The /LB1 option
rem     is used to insure only one line is compared, and the /N numbers
rem     that output line with a "1:", making it easier for us to find.
rem     FC will output immediately after the user hits "Enter" (because
rem     of the /LB1), and will give us a total of 7 lines of output.
rem     Of these 7 lines, the one starting with "1:" is the one we want.
rem
rem (2) The DATE command is used only because it always returns the
rem     phrase "Enter new date (mm-dd-yy): " followed by whatever was
rem     piped into it. Why is this format important? Obviously, it
rem     has nothing to do with setting the date! Well, we will be
rem     piping it into a batch file and running it. When that batch
rem     file runs, it will try to execute the first word (Enter) as if
rem     it were a valid command, and pass everything else as arguments.
rem     Since we have created a valid (batch file) command called ENTER,
rem     this will actually work! We just have to make sure that ENTER.BAT
rem     is set up to handle the arguments that will be passed to it!


echo This is a test. Please enter "y" or "n"
fc con nul /lb1 /n | date | find "1:" > en#er.bat
echo set value=%%5> enter.bat
call en#er.bat
del en?er.bat > nul
if "%value%"=="n" echo You entered "n"
if "%value%"=="y" echo You entered "y"
set value=


rem     See PC Magazine V14N12 June 27, 1995 page 248 for further
rem     information. The PC Magazine article suggests using a
rem     permanent ENTER.BAT which can accept a line
rem     of user input (complete with spaces between words!).
rem     My version is meant to be inserted into any batch file
rem     and will create a simple one-line temporary ENTER.BAT in
rem     the default directory and on the fly as needed.
rem     http://www.eric...s.com


獻花 x0 回到頂端 [8 樓] From:未知地址 | Posted:2007-08-03 19:32 |

首頁  發表文章 發表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.023948 second(s),query:16 Gzip disabled
本站由 瀛睿律師事務所 擔任常年法律顧問 | 免責聲明 | 本網站已依台灣網站內容分級規定處理 | 連絡我們 | 訪客留言