Reputation: 15
Is there a way to create a file with some multi-line text in windows using command prompt only?
I am trying to create a file in windows using command prompt with some multi-line text. I have tried using echo, type but they are only storing first line of text in the newly created file.
line1 = 'KT p:CN=sapserv2, OU=SAProuter, O=SAP Trust Community II, C=DE 192.168.0.76\n# SNC-connection from SAP to local system for R/3-Support\nP 192.168.0.16 192.168.0.76 3299\nD * * *'
echo line1 > file1.txt
I am expecting a file with multi-line text using only command prompt.
Upvotes: 1
Views: 842