#135083 - 2006-08-2801:28 PMRe: Generate html report on free space - servers
NTDOCNTDOC Administrator
Registered: 2000-07-28
Posts: 11628
Loc: CA
Okay I think you may be making a mistake in the file reading, or at least making it a bit more difficult.
Try modifying your script to fit into this structure. Notice the /b which will give it a bare format that is desired for scripting the names.
Also get and place the ReadFile UDF into your script.
Then to make your file write faster you can change your WriteLine to something like this (untested in working code)
I'm 99.9% sure that you're feeding a blank or non machine name to the rest of your functions and then the GetObject is failing but since it doesn't know to end there it keeps generating bogus output.
Use the above coding method and I'm sure you'll end up with working code.