Hello all -I'm trying to read a .txt file created via "winmsd /report xxxxxx" command (on a W2K client). However, each line read
contains only a single character (yet when I view the file via notepad, etc., each line displays as it should). What
I have found is that the file created by WINMSD is encoded as Unicode. If I (via notepad) save it back out as ANSI,
each record is then read in properly! Does anyone have ideas as to how I can get around this issue? Here's the script:
code:
___________________________________________________________________
SHELL "%comspec% /c winmsd /categories +ResourcesIRQS /report c:\IRQS.txt
SLEEP 5 ; give time for winmsd to finish
OPEN(1,"IRQS.txt")
WHILE @ERROR = 0
$x = READLINE(1)
? $x
LOOP
SLEEP 5 ; let me see the contents
CLOSE(1)
____________________________________________________________________
TIA !
- Michael