1.

Solve : To create a dir with yesterday's date?

Answer»

Hi,

I hv to back-up some files on daily basis. This requires creating a dir in yesterday's date and copying the files in this dir.

Since I want to AUTOMATE this process, a bat file file is required.

Any HELP will be highly appreciated

Thanks in Advance.

Regards
PrabsQuote

Since I want to automate this process, a bat file file is required.


Wrong. A command file is not required. What is required is a Windows Script that can handle date functions. While it is true that you can use the set instruction to perform rudimentry arithmetic, what do you plan on calculating when today's date is Mar 1, Aug 1, or Oct 1? or actually on any first day of the month? Unless you are prepared to write a boatload of IF statments, BATCH language is a waste of time.

Check out the Scripting Guys for better results.

Good LUCK.


Discussion

No Comment Found