Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with a automated program

Status
Not open for further replies.

themeaner

IS-IT--Management
Apr 6, 2005
4
US
I do not know the first thing about programming I am a network guy. I have been asked to find a way to automate a process using a script or a bat file. I have a file that needs to be moved from one server to another server. The file in question is named in year-month-day. At midnoght every night a new access database is created and locked. What I need is the day before to automatically move from one werver to the other. Can anyone help me or point me in a direction.
 
Can you see one server from another through Windows network file system? If yes, then simply .bat file with single copy command and Task Sheduller.
 
Well that is the easy way to do it but the file name changes everyday. What I am looking for is help with the bat file
 
You can write a little program in C, if you have a compiler.
Or perhaps

echo %date% > file.tmp

and some perl/gawk/mawk string processing after that.
 
Some advanced scripting language like Perl is the way to go to write such scripts. Easier to maintain can compiled programs. And Perl has plenty of built-in time and date fuctions to figure out today's date.

Good luck!

Vincent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top