Microsoft KB Archive/212813

= SMS: Comment Text is Not Inserted Using "Insert line into Text File" =

Article ID: 212813

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 1.0 Standard Edition
 * Microsoft Systems Management Server 2.0 Service Pack 5

-



This article was previously published under Q212813



SUMMARY
When using the Insert Line into Text File, Add to Autoexec.bat, or Add to Config.sys script items and setting the insert action within the script item dialog to Replace Line Containing Text, the comment text specified is not inserted into the target file.



MORE INFORMATION
This action is by design. When using the Replace Line Containing text insert action for the Insert Line Into Text File script item or any other script items that uses the same interface such as Add to Autoexec.bat or Add to Config.sys, the Replace Line Containing Text insert action does not preserve the previous line. Thus, there is nothing to comment.

To have lines inserted while maintaining the replaced lines in the file as comments, use the Insert Before Line Containing Text or Insert After Line Containing Text insert actions. These actions will prepend the previous line with the comment text specified in the script item and then insert the new line accordingly.

Additional query words: prodsms

Keywords: kbinfo KB212813

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.