![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-13 01:10 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] Hide FTP Commands |
| Printable Version 2,017 / 9 |
| Floor1 ybgts | Posted 2009-01-03 00:53 |
| 新手上路 Posts 8 Credits 8 | |
|
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 ] |
|
| Floor2 HAT | Posted 2009-01-03 21:10 |
| 版主 Posts 5,017 Credits 9,023 | |
|
1000 Ways to Hide Batch Processing Running
http://www.cn-dos.net/forum/viewthread.php?tid=23846 |
|
| Floor3 pooronce | Posted 2009-01-03 21:34 |
| 中级用户 Posts 250 Credits 484 | |
|
Maybe there was a misunderstanding. He might just want the FTP part of the process not to be displayed.
|
|
| Floor4 ybgts | Posted 2009-01-03 23:13 |
| 新手上路 Posts 8 Credits 8 | |
|
Yes, I just want it like this! The process of FTP commands is not displayed. For example: dir bye Such commands are not displayed.
|
|
| Floor5 HAT | Posted 2009-01-04 01:38 |
| 版主 Posts 5,017 Credits 9,023 | |
|
Idea: Dynamically generate a sub-BAT in the main BAT to specifically execute FTP commands. For how to hide, please refer to floor 2.
|
|
| Floor6 ybgts | Posted 2009-01-05 14:35 |
| 新手上路 Posts 8 Credits 8 | |
|
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.
|
|
| Floor7 exzzz | Posted 2009-01-05 18:44 |
| 初级用户 Posts 167 Credits 194 | |
Originally posted by ybgts at 2009-1-5 02:35 PM: 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. |
|
| Floor8 exzzz | Posted 2009-01-05 18:45 |
| 初级用户 Posts 167 Credits 194 | |
|
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.
|
|
| Floor9 b31b6t2t4 | Posted 2009-10-10 10:30 |
| 初级用户 Posts 13 Credits 28 | |
|
Add 2>nul 1>nul after the command
|
|
| Floor10 muou | Posted 2009-12-22 02:24 |
| 新手上路 Posts 9 Credits 11 | |
|
@echo off hides the input commands from display
Adding >nul 2>nul after the command suppresses the command execution results |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |