广告广告
  加入我的最爱 设为首页 风格修改
首页 首尾
 手机版   订阅   地图  繁体 
您是第 5547 个阅读者
 
发表文章 发表投票 回覆文章
  可列印版   加为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.021365 second(s),query:16 Gzip disabled
本站由 瀛睿律师事务所 担任常年法律顾问 | 免责声明 | 本网站已依台湾网站内容分级规定处理 | 连络我们 | 访客留言