Sean Jasie
October 7th, 1998, 10:19 AM
I am writing a DOS bat file that kicks off 2 WIN32 applications on an NT server. One of the apps takes in dates as parameters. I need to get the current date and the current date minus 7 days as the parameters. Does anyone have any suggestions?
SaGS
October 9th, 1998, 10:30 AM
I recomend you to write a small QBASIC program to get and compute the dates (use the DATE$ function). Then the prog can SHELL the necessary commands, or PRINT a batch file to be executed (with the dates already computed and inserted at the appropriate places).
If you still want to use plain DOS batch files, the following site contain links and lots of tricks (includng how to get the date, manipulate strings and make numerical computations); you will definitely find a solution or idea:
http://mh101.infi.net/~wtnewton/batch/batfaq.html