Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I was wondering...... I have a batch file that checks my entire hard drive. Once the batch has run, is there a way for it to retain in memory what it saw so the next time it runs, it will be quicker. Only comparing the changes so to speak.
Thank you.
Posted

Not really, the file system will cache the files and directory information, but this is not saving the information you want.

You can do fancy things in batch files but this is extreme, cryptic and not advised. Check JPsoft TCC/LE

You are better off doing these things in "higher level languages".
 
Share this answer
 
Comments
Member 7766180 27-Sep-11 3:13am    
Ohhhhhhhh. I was hoping. I did not want to go to a batch file for this but it seems that I have no choice. I want to delete a file that I don't know it's name or location. Only it's Creation/Modified time within in a minute and only the batch could do it. And that was hard enough!!!!!!! With lots of help!!!
Try powershell scripts - this page could be a good start -Scripting with Windows PowerShel[^].
 
Share this answer
 
Comments
Member 7766180 27-Sep-11 13:55pm    
Thank you. I will read it, and try. Is it better than batch files? Will it integrate with c++ better?
Madhu Nair 11-Oct-11 12:58pm    
Yes, It is better than batch files. Powershell can be integrated easly with managed C++

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900