echo. >>MyFile
However, this actually adds three characters, a character
0x20, then 0x0D 0xOA--and this cacks the job.
Here's a summary:
TextPad 0A Successful, but must be run manually
NotePad 0D 0A Successful, but must be run manually
echo 20 0D 0A Not success, but can be run via batch file
I realize I can create a file containing only one
character, 0x0A, and append that to the end of my source
file, but that seems like a kludge. Also, I'm sure I
could use an ActiveX script to do this, but that seems
like a sledgehammer approach.
I have so far been unsuccessful determining how to do this
on the command line--but it can't be that tough, can it?
I'm running SQL Server 2000 Enterprise edition SP1 on
Windows 2000 Advanced Server SP2 (but it seems to be
independent of the service packs).
That does sound like a bug. What I'd use to work around it is a tool like
sr32 - www.funduc.com - which can be run from the command line and turn all the
LF's into CRLF's. (This is a very minimal use of a very powerful tool).
Neil Pike MVP/MCSE. Protech Computing Ltd
(Please post ALL replies to the newsgroup only unless indicated otherwise)
"Neil Pike" wrote:
>...
> That does sound like a bug. What I'd use to work around it is a tool
like
> sr32 - www.funduc.com - which can be run from the command line and turn
all the
> LF's into CRLF's. (This is a very minimal use of a very powerful tool).
> ...
in any case, your sledgehammer approach is what you need - except you can
do it just as elegantly.
Just add an activex script to your DTS and paste this code there
Function Main
const ForAppending = 8
set ofso = createObject(scripting.FileSystemObject)
set Myfile = ofso.OpenTextFile("c:\folder1\Subfolder2\thisfile.txt",
forappending, True)
Myfile.write vbLf
Myfile.close
set ofso = nothing
Main = DTSTaskExecResult_Success
End Function
Regards
Habib
"Jimmy May" <jm...@openglobe.net> wrote in message
news:1207f01c12435$e0e9f460$b1e62ecf@tkmsftngxa04...