Batch-file - File compare question - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 02-27-2006, 07:40 AM   #1 (permalink)
Newb Techie
 
Join Date: Feb 2006
Posts: 7
Default Batch-file - File compare question

Hi guys,

is it possible to do a file compare command in a batch file and have it check a whole directory and sub directories rather than just one folder and me having to type out EVERY directory I want checked?

Thanks,

marc :beard:
__________________

Spitwolf is offline  
Old 02-27-2006, 07:56 AM   #2 (permalink)
Master Techie
 
Join Date: Feb 2004
Posts: 2,172
Send a message via AIM to Win2kpatcher
Default

Check out this tool called Total Commander..it will do what you are looking for. Unless it specfically has to be in a batch format for perhaps a network logon or something of that sort?

http://www.ghisler.com/
__________________

Win2kpatcher is offline  
Old 02-27-2006, 09:19 AM   #3 (permalink)
Newb Techie
 
Join Date: Feb 2006
Posts: 7
Default

Thanks for that. I'll take a look at it and have a play around, see what I can do.

Cheers,

Marc :beard:
Spitwolf is offline  
Old 02-27-2006, 10:18 AM   #4 (permalink)
Newb Techie
 
Join Date: Feb 2006
Posts: 7
Default

hhhmm my company doesn't like the fact they have to pay for it. small budget unfortunately. Anything you can point me to, to help me with a batch file? Is it at all possible to do it?

Thanks for your time

Marc :beard:
Spitwolf is offline  
Old 02-27-2006, 10:57 AM   #5 (permalink)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
Default

try clonespy http://www.snapfiles.com/get/clonespy.html

Do you often download files from the internet? Is your hard drive crowded with these files? Have you ever asked yourself which files you already downloaded more than one time? CloneSpy can help you saving hard drive space by detecting and removing duplicate files. CloneSpy can find files that have exactly the same contents regardless of their name, date, time and location. Moreover Clonespy is able to find files that are not exactly identical, but have the same filename. Perhaps you have different versions of a file and you want to find all of them and remove the older versions. In addition, the program can also find zero lenght files. You have the option to decide what you want to do with the found duplicates, CloneSpy shows you the details of each file (and it`s proposed duplicate) and allows you to either keep, move or delete.
office politics is offline  
Old 02-27-2006, 11:25 AM   #6 (permalink)
Newb Techie
 
Join Date: Feb 2006
Posts: 7
Default

I'm gonna sound really picky now. Thanks for the link csamuels but clonespy doesn't seem to check files on "date modified". It just gives me as much work as the batch file I created does. hhhmmm, any other suggestions.

Thankyou for your suggestions so far, it is appreciated.

Thanks,

Marc :beard:
Spitwolf is offline  
Old 02-27-2006, 04:25 PM   #7 (permalink)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
Default

vbscript could do it

<%
Dim oFSO,oFile,dMod
Set oFSO=Server.CreateObject("Scripting.FileSystemObje ct")
'BE SURE TO CHANGE THE NAME IN THE NEXT LINE!!
Set oFile=oFSO.GetFile(Server.MapPath("FILE.asp"))
dMod=oFile.DateLastModified
Set oFSO=Nothing
Set oFile=Nothing
Response.Write dMod
%>
office politics is offline  
Old 02-28-2006, 03:42 AM   #8 (permalink)
Newb Techie
 
Join Date: Feb 2006
Posts: 7
Default

I've never touched VB script but was planning to. Perhaps this is the time to start!

Thanks.
Spitwolf is offline  
Old 02-28-2006, 10:53 AM   #9 (permalink)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
Default

here's the reference guide i learned from

http://www.devguru.com/Technologies/...ript_list.html
__________________

office politics is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 08:57 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.