Saved Bookmarks
| 1. |
Solve : ftp command ???? |
|
Answer» HELLO (i don't KNOW english) i will if the computer connected to internet start ftp and SEND my files thank you.Don't worry about the English... What ftp program are you using ? ?in cmd ftp -s:ftp.txt ftp.txt: open my server my username my password bin put myfile.txt bye ----------------- but if computer not connected to internet don't send my file Quote from: mss9668 on April 14, 2013, 01:47:48 AM but if computer not connected to internet don't send my file Is that the problem you are FACING? Code: [Select]@echo off ping www.google.com >nul || ( echo You are not connected to the internet pause ) no.... for example : Code: [Select]@echo off cls :1 if connected to internet goto 2 if not connected to internet goto 3 :2 ftp -s:ftp.txt :3 goto 1 EDITED Code: [Select]@echo off :loop ping www.google.com >nul && (ftp -s:ftp.txt) || (goto :loop) Quote from: mss9668 on April 14, 2013, 03:37:47 AM no.... You don't NEED to use three labels. One will do. :1 if not connected to internet goto 1 ftp -s:ftp.txt Practical implementation: :1 ping -n 1 www.google.com >nul if %errorlevel% gtr 0 goto 1 ftp -s:ftp.txt or... :1 ping -n 1 www.google.com >nul || goto 1 ftp -s:ftp.txt |
|