|
Answer» Dear, How do i create batch file to read date & time of text file & compare with Current date & time to findout the difference between time & date. Procedure required, 1) Read todays data & current time 2) Read contents of txt file which are date & time 3) compare step 1 with step 2 4) if difference is greater than 8 hrs kill the process called xyz.
please help me to solve. thanx in advanceif you can USE vbscript, for 1) to 3) , you can see here for some examples... USING Date (eg DateAdd,Datediff) functions from vbscript. for 4), you can see here
Sorry but i am not much FAMILIAR with VB scripts. can we do the same by using batch file only.Quote from: Yogesh123 on September 09, 2009, 04:21:25 AM Sorry but i am not much familiar with VB scripts. can we do the same by using batch file only.
if you are asking for a batch solution here, it shows you are not familiar with batch either. what makes you hesitate to learn about vbscript then? you are also expected to put in your own effort in the first PLACE.
|