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-12 23:24
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Hide FTP Commands View 2,016 Replies 9
Original Poster Posted 2009-01-03 00:53 ·  中国 广东 中山 电信
新手上路
Credits 8
Posts 8
Joined 2008-12-13 15:08
17-year member
UID 133749
Gender Male
Status Offline
Dear all experts, I want to run the FTP command in a batch file, can I make the FTP command not be displayed? If it is possible, please teach me how to do it?

I want to hide the running of the command ftp -s:ftp.txt and not display it

Thank you!

[ Last edited by ybgts on 2009-1-5 at 14:35 ]
Floor 2 Posted 2009-01-03 21:10 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
1000 Ways to Hide Batch Processing Running
http://www.cn-dos.net/forum/viewthread.php?tid=23846
Floor 3 Posted 2009-01-03 21:34 ·  中国 浙江 嘉兴 电信
中级用户
★★
Credits 484
Posts 250
Joined 2007-06-05 23:33
19-year member
UID 90372
Gender Male
Status Offline
Maybe there was a misunderstanding. He might just want the FTP part of the process not to be displayed.
Floor 4 Posted 2009-01-03 23:13 ·  中国 广东 中山 电信
新手上路
Credits 8
Posts 8
Joined 2008-12-13 15:08
17-year member
UID 133749
Gender Male
Status Offline
Yes, I just want it like this! The process of FTP commands is not displayed. For example: dir bye Such commands are not displayed.
Floor 5 Posted 2009-01-04 01:38 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Idea: Dynamically generate a sub-BAT in the main BAT to specifically execute FTP commands. For how to hide, please refer to floor 2.
Floor 6 Posted 2009-01-05 14:35 ·  中国 广东 中山 电信
新手上路
Credits 8
Posts 8
Joined 2008-12-13 15:08
17-year member
UID 133749
Gender Male
Status Offline
This sentence is in Chinese and seems to be an incomplete expression. It can be translated as "Hurry up myself, very urgent ah" but it's a bit awkward. Maybe the original intention is "I'm in a hurry myself, very urgent" and the translation is "I am in a hurry myself, very urgent". But it's better to check the exact context. Since no more context is given, it's translated as above.
Floor 7 Posted 2009-01-05 18:44 ·  中国 广东 深圳 电信
初级用户
★★
游手好闲 + 无所事事 ..
Credits 194
Posts 167
Joined 2007-04-30 09:43
19-year member
UID 87022
Gender Male
Status Offline
Originally posted by ybgts at 2009-1-5 02:35 PM:
Anxious, really anxious


Moderator HAT has made it very clear. Since you already know how to generate a TXT in BAT and then call it via FTP, why not echo this code into a certain bat, and then use WSHELL.run in VBS to hide and run this generated bat? Please search this forum for methods of hiding and running batch processing.
Floor 8 Posted 2009-01-05 18:45 ·  中国 广东 深圳 电信
初级用户
★★
游手好闲 + 无所事事 ..
Credits 194
Posts 167
Joined 2007-04-30 09:43
19-year member
UID 87022
Gender Male
Status Offline
In addition, adding @echo off at the beginning of the bat hides the input commands. Adding >nul 2>nul after the command hides the command execution results.
Floor 9 Posted 2009-10-10 10:30 ·  中国 台湾 中华电信(HiNet)数据中心
初级用户
Credits 28
Posts 13
Joined 2009-09-19 22:06
16-year member
UID 152303
Gender Male
Status Offline
Add 2>nul 1>nul after the command
Floor 10 Posted 2009-12-22 02:24 ·  中国 云南 曲靖 罗平县 电信
新手上路
Credits 11
Posts 9
Joined 2009-10-11 12:34
16-year member
UID 152944
Gender Male
Status Offline
@echo off hides the input commands from display
Adding >nul 2>nul after the command suppresses the command execution results
Forum Jump: