China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-03 20:27
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Automatic file upload? [fixed] Thanks, everyone! View 888 Replies 8
Original Poster Posted 2007-03-18 06:54 ·  中国 辽宁 丹东 联通
初级用户
★★
Credits 116
Posts 56
Joined 2007-03-07 04:53
19-year member
UID 80966
Gender Male
Status Offline
For example, I want to upload my web page file d:/1.htm to my own site, so I can update the website!
Usually I have to log in to the site manually, enter the username/password, and then upload d:/1.htm to overwrite the original file!
That's really troublesome, having to log in and upload it manually every time. Can batch file do this?
Please give me some pointers, experts. Thanks in advance!

[ Last edited by 3391617 on 2007-3-18 at 03:03 PM ]
Floor 2 Posted 2007-03-18 09:10 ·  中国 安徽 马鞍山 电信
中级用户
★★
Credits 493
Posts 228
Joined 2007-02-16 00:38
19-year member
UID 79596
Gender Male
From 安徽
Status Offline
Try using FTP
See if it works?
Floor 3 Posted 2007-03-18 09:47 ·  中国 辽宁 丹东 联通
初级用户
★★
Credits 116
Posts 56
Joined 2007-03-07 04:53
19-year member
UID 80966
Gender Male
Status Offline
I just tried it. ik8's ftp upload doesn't work, but some others do support uploading. The key question now is whether batch file can do it or not?
Floor 4 Posted 2007-03-18 12:35 ·  中国 北京 朝阳区 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
If FTP upload isn't supported, it may be possible
If FTP is supported, then it should be possible

[ Last edited by yishanju on 2007-3-18 at 12:36 PM ]

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 5 Posted 2007-03-18 12:38 ·  中国 北京 朝阳区 联通
银牌会员
★★★★
[b]看你妹啊[/b]
Credits 1,488
Posts 1,357
Joined 2006-05-20 12:00
20-year member
UID 55770
Status Offline
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
3391617 +1 2007-03-19 04:00

有问题请发论坛或者自行搜索,再短消息问我的统统是SB
Floor 6 Posted 2007-03-18 21:56 ·  中国 辽宁 丹东 联通
初级用户
★★
Credits 116
Posts 56
Joined 2007-03-07 04:53
19-year member
UID 80966
Gender Male
Status Offline
Thanks a lot, I'll go try it!
Floor 7 Posted 2007-03-18 22:49 ·  中国 四川 绵阳 江油市 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
I used this before, give it a try
@echo off
echo open ftp的ip >%temp%\put.txt
echo ftp的用户名 >>%temp%\put.txt
echo 密码 >>%temp%\put.txt
echo get 路径\文件 >>%temp%\put.txt
echo by >>%temp%\put.txt
::Use vbs below to delay 10 seconds
echo Wscript.Sleep Wscript.Arguments(0) * 1000 >%temp%\delay.vbs
start ftp.exe -s:%temp%\put.txt
start /w %temp%\delay.vbs 15
del %temp%\put.txt
del %temp%\delay.vbs
del get-r.bat
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
3391617 +1 2007-03-19 03:59
Floor 8 Posted 2007-03-19 03:29 ·  中国 辽宁 丹东 联通
初级用户
★★
Credits 116
Posts 56
Joined 2007-03-07 04:53
19-year member
UID 80966
Gender Male
Status Offline
I've been trying this the whole time, it's worn me out!
Now I finally figured it out, thank you!

[ Last edited by 3391617 on 2007-3-18 at 02:59 PM ]
Floor 9 Posted 2007-03-19 03:56 ·  中国 四川 绵阳 江油市 电信
高级用户
★★★
Credits 502
Posts 327
Joined 2006-12-30 06:01
19-year member
UID 74981
Gender Male
Status Offline
Why not just try it yourself and find out,

Pre-chewed food doesn't taste good
Forum Jump: