Scripting a BAT file with > to file on K1000 fails
I have a script that uses the Launch Batch File to run a process (a CSCRIPT to list priters but I've seen this with other things)
It does this
CSCRIPT.EXE PRNMNGR.vbs -L > c:\InstalledPrinters.txt
However, when it runs it inserts an extra 1 after the > and the pipe fails. If the BAT is double-clicked it works properly.
I think it may be specific to Windows XP.
Does anyone know why this happens?