Computing.Net > Forums > Windows Server 2003 > FTP Batch Script for date filename

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

FTP Batch Script for date filename

Reply to Message Icon

Name: ReggieD
Date: November 11, 2003 at 12:33:14 Pacific
OS: Windows Server 2003
CPU/Ram: Multiple Gigs
Comment:

Hi All,
I want to create a batch file that will read a file with format INTyyyymmddhhmm.DAT (where yyyymmddhhmm is the current date and time)from the c:\ drive and FTP this file to a remote server. So far I can make it FTP for file c:\INT* but NEED HELP with making it dynamic ie. read the file with current date and time. The code is as follows:

%windir%\system32\ftp.exe -s:%~f0
goto done
open 90.60.136.5
yzyksyg
pgtj2als
put c:\INT*.DAT
bye
:done
@echo off
cls
exit

Thanks a lot.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Seperate print server? or... Windows Media Services Pr...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Server 2003 Forum Home


Sponsored links

Ads by Google


Results for: FTP Batch Script for date filename

FTP batch script www.computing.net/answers/windows-2003/ftp-batch-script/5436.html

Batch script for copying files www.computing.net/answers/windows-2003/batch-script-for-copying-files/6487.html

Batch script to move/delete files www.computing.net/answers/windows-2003/batch-script-to-movedelete-files/6453.html