•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Computer Science and Software Design section within the Software Development category of DaniWeb, a massive community of 456,469 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,813 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Computer Science and Software Design advertiser: Programming Forums
Views: 6587 | Replies: 1
![]() |
•
•
Join Date: Jul 2004
Posts: 17
Reputation:
Rep Power: 5
Solved Threads: 0
Hi ya,
I looked up "fc" and "for" in DOS commands but unable to find the solution I desired.
I would want to edit a command into a .bat file that could search a particular field in a line (the line might be of different sequence order) in a .dat file (could be opened up to read as a text file) and compare with another .dat file.
For example, the .dat file would looks something like this :
UsageCounter158555
ConsecutiveCounter0999
AccessoryCounter157333
Any kind soul out there knows if there any DOS command or how am I able to, say compare the "999" field of ConsecutiveCounter between 2 such .dat files and possibly have a return value like 1 or 0 to indicate if the search is successful?
I looked up "fc" and "for" in DOS commands but unable to find the solution I desired.
I would want to edit a command into a .bat file that could search a particular field in a line (the line might be of different sequence order) in a .dat file (could be opened up to read as a text file) and compare with another .dat file.
For example, the .dat file would looks something like this :
UsageCounter158555
ConsecutiveCounter0999
AccessoryCounter157333
Any kind soul out there knows if there any DOS command or how am I able to, say compare the "999" field of ConsecutiveCounter between 2 such .dat files and possibly have a return value like 1 or 0 to indicate if the search is successful?
![]() |
•
•
•
•
•
•
•
•
DaniWeb Computer Science and Software Design Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
adult advertising blog blogging business business software coding computer dell design development engine erp systems firefox google india internet it linux marketing media microsoft mmorpg msn networking news office open open-source operating programming project management publishing revenue rss science search security software software selection source system technology evaluation vista web wiki windows xp yahoo
Other Threads in the Computer Science and Software Design Forum
- Previous Thread: i want to know how to create a file maintenance using visual basic 6.0
- Next Thread: minimum weight perfect matching


Linear Mode