Thanks for the tip Marty.
I added the vbNewLine to the script after the string variable. Ran some
tests on some dummy directories and it looks like that will make things a lot
easier.
Once again, thank you for the help.
--
Ryan D. , MCP, A+, Net+
"Marty List" wrote:
>
> Which scripting language are you using???
>
> If you're using VBScript, try adding the vbNewLine constant, which VBScript will
> convert to a "carriage return" character and a "new line" character.
>
> Option Explicit
> Dim MyString
> MyString = "My Text" & vbNewLine & vbNewLine
>
>
> You could also use the vbCrLf constant, they should always be the same.
>
>
>
> "Ryan D." <RyanD RemoveThis @discussions.microsoft.com> wrote in message
> news:DEB70C3D-7238-4814-BDF6-664F115AC686@microsoft.com...
> > New to scripting but I have a script that adds a line to the end of .ini
> > files in users home directories.
> >
> > I need to know how to add a carriage return after the added line?
> >
> > If I modify the script I have now to add more text in the future it just
> > appends the text at the end of the last line in the file and not below it.
> >
> > Any help would be appreciated.
> >
> >
> >
> > --
> > Ryan D. , MCP, A+, Net+
>
>
> >> Stay informed about: Simple Scripting Question