Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
On Thu, 3 Feb 2005, Jerry Gamblin wrote:
> Right now the only way I know how to do it is to edit the script for
> every computer like
>
> psexec \\computer1 defrag c:\
> psexec \\computer2 defrag c:\
> psexec \\computer3 defrag c:\
>
>
> Does anyone know how to read from my text file as a variable so that it
> would read through the list and do all the computers?
>
> So the script would look something like this:
>
> psexec \\%comp% defrag c:\
I agree that cygwin would make it easy.
Another fairly easy way to do it is to use a macro in any word processor
and have it add 'psexec \\' at the beginning of every line and
' degfrag c:\' at the end of every line. Then save.
I used to do stuff like that in WordPerfect. Actually, it was quite
amazing what you could do with WP5.1. Also, it allowed me to use emacs-
style keystrokes.
Mike
_______________________________________________
discussion mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/discussion