Ms Dos script gallery !
MS Dos
Samples ( fetch ftp .)
Cut the script and make the necessarily changes in note pad save as *.bat
::Double colons comment a line out so it doesn't run or show. ::To make this work for you just copy and paste with notepad and then ::save it with the extension ".bat". To run it, just double click ::or call it from your program. ::This approach to FTP comes in handy. I use it alot to SHELL OUT ::of VB and FTP stuff back and forth. ::NOTE mget,mput,get and put all differ. ::mget and mput gets and puts everything ::get and put only gets a specific file ::example: mget *.* will get everything OR you can name a file like MyFile.txt ::use "ascii / binary" if you d-loading plain "text / pictures n more" ::go for it echo open ip.to.get.from >tftp echo loginID>>tftp echo password>>tftp echo cd /folder/to/get/from/ *.* >>tftp echo lcd c:\wherever\you\want\the\new\files\*.* >>tftp echo prompt >>tftp echo ascii >>tftp echo mget *.* >>tftp echo bye >>tftp ftp -s:tftp
<
Go back !
>
www.freescripts.4t.com