Jan 16, 2009

cmd.exe Not to show DOS window , ftp command

-----aa.vbs--------
DIM objShell
set objShell=wscript.createObject("wscript.shell")
iReturn=objShell.Run("cmd.exe /C c:\maint\batch\ftp_192.168.0.1.bat", 0, TRUE)

# /C => not to show cmd windows

-----ftp_192.168.0.1.bat -----
@ftp -s:c:\maint\batch\192.168.0.1.txt 192.168.0.1
@del /Q D:\FTP_DATA\data\*.*

---- 192.168.0.1.txt -----
account
password
lcd D:\data
cd /data
asc
prompt
mput *
bye


****----DOS ftp parameter
ftp -help

0 意見: