Computing.Net > Forums > Disk Operating System > Batch file - replacing files by date

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch file - replacing files by date

Reply to Message Icon

Name: Leena
Date: June 5, 2001 at 12:00:00 Pacific
Comment:

I want a batch file to search for a virus scan program and check the date. If the date is not equal to the newer version date I want to replace that file with the newer version. Can anyone help?



Sponsored Link
Ads by Google

Response Number 1
Name: Dominatrix
Date: June 5, 2001 at 12:08:50 Pacific
Reply:

Considering you already have the newer file, wouldn't it be easier to do it yourself by hand?

(As far as I know, Command.Com doesn't have direct comparision operators (e.g. >=), but you could write a batch file to execute a QBasic script that would do what you wanted.


0

Response Number 2
Name: Laurence
Date: June 8, 2001 at 09:57:57 Pacific
Reply:

Batfiles: The DOS batch file programming handbook


It can be done with batch, but requires a lot of hokus pokus. I haven't time to write something specific, but check:
http://home7.inet.tele.dk/batfiles/main/batchfaq.htm#77

And
http://home7.inet.tele.dk/batfiles/monthly/sep2000.htm


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Batch file - replacing files by date

Deleting Files by Date?? www.computing.net/answers/dos/deleting-files-by-date/10697.html

Deleting Files by Date?? www.computing.net/answers/dos/deleting-files-by-date/10700.html

delete old files by date www.computing.net/answers/dos/delete-old-files-by-date/13057.html