Computing.Net > Forums > Programming > Batch file creation

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.

Batch file creation

Reply to Message Icon

Name: leo.support2u
Date: February 9, 2009 at 22:01:19 Pacific
OS: windows 2003
Subcategory: Batch
Comment:

Hi All,

I'm need help creating a batch file that will do a few things. First look at some folders in a directory and determine which is the newest modified/created folder. Then in that newest modified/created folder upload the FTP site.
& delete 5 day old file from ftp site

Thanks in advance,
Jet Leo



Sponsored Link
Ads by Google

Response Number 1
Name: Holla
Date: February 10, 2009 at 01:25:33 Pacific
Reply:

To get the latest directory,
for /f %a in ('dir /ad/od /b') do set newest=%a

About dates and ftp, it is way too complicated.
Have a look at:

http://www.computing.net/answers/pr...

--
Holla.


0
Reply to Message Icon

Related Posts

See More


hard drive please help me with m ypr...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch file creation

Batch File Creation with MD www.computing.net/answers/programming/batch-file-creation-with-md/11547.html

batch file creation www.computing.net/answers/programming/batch-file-creation/5194.html

Newbie... Batch file creation? www.computing.net/answers/programming/newbie-batch-file-creation/17499.html