Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replicate Dos commands

Status
Not open for further replies.

NNNNN

MIS
Dec 2, 2002
90
GB
HI
I wonder if tis is possible

to compoare the text in two files to see if they are equal

the dos command is
comp "file1.txt" "file2.txt" >c:\mycompare.txt

this compares two text files and sends the results to a text file.

can this be done from access

so if I had a form with 3 text boxes
I put my file names in text box1
the file I am comparing to in text box2
and I would like the reult to appear in text box three.

Also

I want to replicat the findstr command

what I want to do is search through all text files in a particular directory
and show the files that contain the text "staff"

I want the results to be sent direct to a table

Is any of the above possible with VBA
or somehow using dos

Thanks for your time
 
FileLen Function Example
This example uses the FileLen function to return the length of a file in bytes. For purposes of this example, assume that TESTFILE is a file containing some data.

Dim MySize
MySize = FileLen("TESTFILE")
'from the Access 2000 help file

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top