1.

Solve : Need help writing a script!!!!!!!!!!?

Answer»

Does anyone know how to do this?

- input a string that is to be USED for matching purposes
- loop through the entire directory tree of your drive
- loop through all the files on each drive
- accumulate a TOTAL of all files that contain the input matching string
-display the number of files on the drive that contain the input string using a formatted sentence like:

There are nnn files on the drive that contain the string "xxxxx".- String that was input as postional parameter.

PLEASE HELP ME! It's for my homework!Homework helping mode:-

Quote

- input a string that is to be used for matching purposes

set /P

Quote
- loop through the entire directory tree of your drive

FOR

dir /s

Quote
- loop through all the files on each drive

*.*

Quote
- accumulate a total of all files that contain the input matching string

set /a

Quote
-display the number of files on the drive that contain the input string using a formatted sentence like:

echo, variables,

This is an interesting little project, which, if you had been paying attention in CLASS, and read up a little bit, you should have no trouble in completing. Please feel free to post scripts which we can comment on and suggest improvements to.

(We would have KNOWN it was your homework even if you hadn't said so!)






Discussion

No Comment Found