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?

0 Comments   [ + ] Show Comments


Please log in to comment



Is there anyway you can take a screenshot of your setup? I'm running a vbs and outputting to a txt and I'm not experiencing problems with it. What version agent/server are you running? You might want to enable logging on one of your test machines to verify what exactly is happening.

Answered 01/15/2013 by: dugullett
Red Belt

Please log in to comment

cscript c:\windows\system32\prnmngr.vbs -l > c:\InstalledPrinters.txt

should do the trick..

Answered 01/15/2013 by: jagadeish
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja