Hi, I got it to work, but only if I "hardcode" the output file.
[IMG]http://i9.tinypic.com/2cp7449.jpg[/IMG] Also, I cannot longer select the query I want to run. It seems the whole file is sent to SQLCMD for execution :-/ I do not understand why I experience these problems ? Any more ideas? If the query select name from sysdatabases fails you are probably not running it against the master database. Try changing it to select name from master..sysdatabases regards, -- <http://forum.pspad.com/read.php?2,18695,33470> PSPad freeware editor http://www.pspad.com
