dbTalk Databases Forums  

Appending to a File

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Appending to a File in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
JLFleming
 
Posts: n/a

Default Appending to a File - 06-16-2004 , 08:32 AM






I have created an ActiveX script for a Local Package.

I am trying to append to a text file, using the
FileSystemObject.

When I use the code:
objFSO.OpenTextFile("c:\text.txt", ForAppending)

I get an error. If I do not put the "ForAppending" on
the end, I get bad file mode.

Am I using the correct syntax?

Thank you,
Jennifer


..



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Appending to a File - 06-16-2004 , 09:08 AM






Use the numeric value instead of the name. I believe 8 is ForAppending



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"JLFleming" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have created an ActiveX script for a Local Package.

I am trying to append to a text file, using the
FileSystemObject.

When I use the code:
objFSO.OpenTextFile("c:\text.txt", ForAppending)

I get an error. If I do not put the "ForAppending" on
the end, I get bad file mode.

Am I using the correct syntax?

Thank you,
Jennifer


.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.