Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.
how to compare two dates in bat DOS
Name: dosuserdos Date: May 22, 2007 at 00:50:44 Pacific OS: winxp CPU/Ram: p4 and 2 GB
Comment:
can Anybody tell me how to compare dates in dos. Actually my requirement is I want to delete all the directories which are three days old.
Name: ghostdog Date: May 22, 2007 at 07:27:10 Pacific
Reply:
Since you are using XP and not pure DOS, there is no lack of tools that can find the date for you. eg of some of them are Perl/Python..which are better than batch to do such things. If you are not restricted to only batch, you can download Windows services for Unix at http://technet.microsoft.com/en-us/... It brings Unix to Windows environment. Once you installed, you can just use the korn shell and do this: find /dev/fs/C -type d -mtime +3 -print. This will print out the directories that are more than 3 days in your C drive. To remove them, you can pipe to rm command: find /dev/fs/C -type d -mtime +3 -print | xargs rm -f
Summary: I am running windows xp, my computer is not able to start win anymore. I know how to solve the problem in ms-dos mode. But I donīt know how to enter it. I remember you could open a start menu by press...
Summary: Hi could anybody please explain how to network two machines next to each other so that I can send large amounts of information from one to the other. I assume I need some sort of cable, any ideas plea...