Write multi-line variable to .txt (CMD, NO .bat)Insert line break/special character in string in command...
Everything Bob says is false. How does he get people to trust him?
Why is `const int& k = i; ++i; ` possible?
Generic lambda vs generic function give different behaviour
How will losing mobility of one hand affect my career as a programmer?
Coordinate position not precise
Hide Select Output from T-SQL
What defines a dissertation?
(Bedrock Edition) Loading more than six chunks at once
Products and sum of cubes in Fibonacci
Can somebody explain Brexit in a few child-proof sentences?
Modify casing of marked letters
Is HostGator storing my password in plaintext?
Tiptoe or tiphoof? Adjusting words to better fit fantasy races
What to do with wrong results in talks?
Is there a problem with hiding "forgot password" until it's needed?
How does residential electricity work?
What is the opposite of 'gravitas'?
Will it be accepted, if there is no ''Main Character" stereotype?
Can a monster with multiattack use this ability if they are missing a limb?
Increase performance creating Mandelbrot set in python
How can I replace every global instance of "x[2]" with "x_2"
At which point does a character regain all their Hit Dice?
Is a roofing delivery truck likely to crack my driveway slab?
If you attempt to grapple an opponent that you are hidden from, do they roll at disadvantage?
Write multi-line variable to .txt (CMD, NO .bat)
Insert line break/special character in string in command lineSet three PATHS in UbuntuUsing an environment variable set to a path value: the system cannot find the path specified for %OPENCV_DIR%Windows Environment VariablesMultiline && combinator operator for command chaining in batch fileEdit lines in txt file with batWindows cmd: escape commands to start cmd from batch file, executing commands that add to PATHCMD; youtube-dl: store the output filename as a variableSetting Environment variables in Windows 10, to be able to run Python from cmdWant to set an environment variable with TIME /tDoes the Windows Command Prompt search somewhere other than those locations specified by the PATH variable when launching application programs?
I'm successfully splitting %PATH%
into multiple lines like this
set t=%PATH:;=^&echo.%
then this displays each path in new line nicely, just as I want:
echo %t%
However when I want to write variable into a file
echo %t% >paths.txt
only last line is written to the file.
What am I doing wrong?
Update
Turns out the set t=%PATH:;=^&echo.%
command does not replace ;
characters with line breaks (as I was told) but instead replaces it with the &echo.
command, which is later executed.
cmd.exe environment-variables
add a comment |
I'm successfully splitting %PATH%
into multiple lines like this
set t=%PATH:;=^&echo.%
then this displays each path in new line nicely, just as I want:
echo %t%
However when I want to write variable into a file
echo %t% >paths.txt
only last line is written to the file.
What am I doing wrong?
Update
Turns out the set t=%PATH:;=^&echo.%
command does not replace ;
characters with line breaks (as I was told) but instead replaces it with the &echo.
command, which is later executed.
cmd.exe environment-variables
add a comment |
I'm successfully splitting %PATH%
into multiple lines like this
set t=%PATH:;=^&echo.%
then this displays each path in new line nicely, just as I want:
echo %t%
However when I want to write variable into a file
echo %t% >paths.txt
only last line is written to the file.
What am I doing wrong?
Update
Turns out the set t=%PATH:;=^&echo.%
command does not replace ;
characters with line breaks (as I was told) but instead replaces it with the &echo.
command, which is later executed.
cmd.exe environment-variables
I'm successfully splitting %PATH%
into multiple lines like this
set t=%PATH:;=^&echo.%
then this displays each path in new line nicely, just as I want:
echo %t%
However when I want to write variable into a file
echo %t% >paths.txt
only last line is written to the file.
What am I doing wrong?
Update
Turns out the set t=%PATH:;=^&echo.%
command does not replace ;
characters with line breaks (as I was told) but instead replaces it with the &echo.
command, which is later executed.
cmd.exe environment-variables
cmd.exe environment-variables
edited 14 mins ago
Nick Jones
1033
1033
asked Mar 24 '17 at 15:17
Paweł AudionysosPaweł Audionysos
16438
16438
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
What am I doing wrong?
You need to surround the last echo
with (
and )
(echo %t%) > paths.txt
Corrected batch file (test.cmd):
@echo off
setlocal
set t=%PATH:;=^&echo.%
echo %t%
(echo %t%) > paths.txt
:endendlocal
Example usage:
> test
C:Windowssystem32
C:Windows
C:WindowsSystem32Wbem
C:WindowsSystem32WindowsPowerShellv1.0
C:appsWSCCSysinternals Suite
C:appsWSCCNirSoft Utilities
C:appsCalibre
C:appsGitcmd
C:appsGitmingw64bin
C:appsGitusrbin
C:appsnodejs
C:UsersDavidPostillAppDataRoamingnpm
> type paths.txt
C:Windowssystem32
C:Windows
C:WindowsSystem32Wbem
C:WindowsSystem32WindowsPowerShellv1.0
C:appsWSCCSysinternals Suite
C:appsWSCCNirSoft Utilities
C:appsCalibre
C:appsGitcmd
C:appsGitmingw64bin
C:appsGitusrbin
C:appsnodejs
C:UsersDavidPostillAppDataRoamingnpm
A simpler solution
This solution does not require any brackets in the path to be escaped.
test.cmd:
@echo off
setlocal
for %%i in ("%path:;=";"%") do (
echo %%~i >> paths.txt
)
:endendlocal
And from the command line:
for %i in ("%path:;=";"%") do echo %~i >> paths.txt
Further Reading
An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
syntax-brackets - Using parenthesis/brackets to group expressions
I've already tied this. I gotAt this moment Javajdk1.6.0_39bin was unexpected
(thought it's said in Polish and I'm not sure how original message looks like). I have `C:Program Files (x86)Javajdk1.6.0_39bin` on 3 line in the variable if that helps.
– Paweł Audionysos
Mar 24 '17 at 18:03
Let me know If i understand it right. Dose my variable%t%
stores actualecho.
commends in itself? that are then tied to be executed? Because I thought my%t%
variable simply stores a single string that is written to the file...
– Paweł Audionysos
Mar 24 '17 at 18:17
It storesecho
commands in the string. The string looks likeC:Windowssystem32&echo.C:Windows&echo.C:WindowsSystem32Wbem&echo.C:WindowsSystem32WindowsPowerShellv1.0&echo.C:appsWSCCSysinternals Suite&echo.C:appsWSCCNirSoft Utilities&echo.C:appsCalibre&echo.C:appsGitcmd&echo.C:appsGitmingw64bin&echo.C:appsGitusrbin&echo.C:appsnodejs&echo.C:UsersDavidPostillAppDataRoamingnpm
in my case.
– DavidPostill♦
Mar 24 '17 at 18:26
1
@PawełAudionysos I've added a much simpler solution to the answer, which does not require any brackets in the path to be escaped
– DavidPostill♦
Mar 24 '17 at 18:35
1
@PawełAudionysos I've added a command line solution.
– DavidPostill♦
Mar 24 '17 at 19:04
|
show 3 more comments
Yours t
should not store special control characters as a part of path like "
, &
, |
, %
and so on.
If so, then you can just replace the ending )
character having interference with the parser:
(echo %t:)=^)%) > a
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1191981%2fwrite-multi-line-variable-to-txt-cmd-no-bat%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
What am I doing wrong?
You need to surround the last echo
with (
and )
(echo %t%) > paths.txt
Corrected batch file (test.cmd):
@echo off
setlocal
set t=%PATH:;=^&echo.%
echo %t%
(echo %t%) > paths.txt
:endendlocal
Example usage:
> test
C:Windowssystem32
C:Windows
C:WindowsSystem32Wbem
C:WindowsSystem32WindowsPowerShellv1.0
C:appsWSCCSysinternals Suite
C:appsWSCCNirSoft Utilities
C:appsCalibre
C:appsGitcmd
C:appsGitmingw64bin
C:appsGitusrbin
C:appsnodejs
C:UsersDavidPostillAppDataRoamingnpm
> type paths.txt
C:Windowssystem32
C:Windows
C:WindowsSystem32Wbem
C:WindowsSystem32WindowsPowerShellv1.0
C:appsWSCCSysinternals Suite
C:appsWSCCNirSoft Utilities
C:appsCalibre
C:appsGitcmd
C:appsGitmingw64bin
C:appsGitusrbin
C:appsnodejs
C:UsersDavidPostillAppDataRoamingnpm
A simpler solution
This solution does not require any brackets in the path to be escaped.
test.cmd:
@echo off
setlocal
for %%i in ("%path:;=";"%") do (
echo %%~i >> paths.txt
)
:endendlocal
And from the command line:
for %i in ("%path:;=";"%") do echo %~i >> paths.txt
Further Reading
An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
syntax-brackets - Using parenthesis/brackets to group expressions
I've already tied this. I gotAt this moment Javajdk1.6.0_39bin was unexpected
(thought it's said in Polish and I'm not sure how original message looks like). I have `C:Program Files (x86)Javajdk1.6.0_39bin` on 3 line in the variable if that helps.
– Paweł Audionysos
Mar 24 '17 at 18:03
Let me know If i understand it right. Dose my variable%t%
stores actualecho.
commends in itself? that are then tied to be executed? Because I thought my%t%
variable simply stores a single string that is written to the file...
– Paweł Audionysos
Mar 24 '17 at 18:17
It storesecho
commands in the string. The string looks likeC:Windowssystem32&echo.C:Windows&echo.C:WindowsSystem32Wbem&echo.C:WindowsSystem32WindowsPowerShellv1.0&echo.C:appsWSCCSysinternals Suite&echo.C:appsWSCCNirSoft Utilities&echo.C:appsCalibre&echo.C:appsGitcmd&echo.C:appsGitmingw64bin&echo.C:appsGitusrbin&echo.C:appsnodejs&echo.C:UsersDavidPostillAppDataRoamingnpm
in my case.
– DavidPostill♦
Mar 24 '17 at 18:26
1
@PawełAudionysos I've added a much simpler solution to the answer, which does not require any brackets in the path to be escaped
– DavidPostill♦
Mar 24 '17 at 18:35
1
@PawełAudionysos I've added a command line solution.
– DavidPostill♦
Mar 24 '17 at 19:04
|
show 3 more comments
What am I doing wrong?
You need to surround the last echo
with (
and )
(echo %t%) > paths.txt
Corrected batch file (test.cmd):
@echo off
setlocal
set t=%PATH:;=^&echo.%
echo %t%
(echo %t%) > paths.txt
:endendlocal
Example usage:
> test
C:Windowssystem32
C:Windows
C:WindowsSystem32Wbem
C:WindowsSystem32WindowsPowerShellv1.0
C:appsWSCCSysinternals Suite
C:appsWSCCNirSoft Utilities
C:appsCalibre
C:appsGitcmd
C:appsGitmingw64bin
C:appsGitusrbin
C:appsnodejs
C:UsersDavidPostillAppDataRoamingnpm
> type paths.txt
C:Windowssystem32
C:Windows
C:WindowsSystem32Wbem
C:WindowsSystem32WindowsPowerShellv1.0
C:appsWSCCSysinternals Suite
C:appsWSCCNirSoft Utilities
C:appsCalibre
C:appsGitcmd
C:appsGitmingw64bin
C:appsGitusrbin
C:appsnodejs
C:UsersDavidPostillAppDataRoamingnpm
A simpler solution
This solution does not require any brackets in the path to be escaped.
test.cmd:
@echo off
setlocal
for %%i in ("%path:;=";"%") do (
echo %%~i >> paths.txt
)
:endendlocal
And from the command line:
for %i in ("%path:;=";"%") do echo %~i >> paths.txt
Further Reading
An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
syntax-brackets - Using parenthesis/brackets to group expressions
I've already tied this. I gotAt this moment Javajdk1.6.0_39bin was unexpected
(thought it's said in Polish and I'm not sure how original message looks like). I have `C:Program Files (x86)Javajdk1.6.0_39bin` on 3 line in the variable if that helps.
– Paweł Audionysos
Mar 24 '17 at 18:03
Let me know If i understand it right. Dose my variable%t%
stores actualecho.
commends in itself? that are then tied to be executed? Because I thought my%t%
variable simply stores a single string that is written to the file...
– Paweł Audionysos
Mar 24 '17 at 18:17
It storesecho
commands in the string. The string looks likeC:Windowssystem32&echo.C:Windows&echo.C:WindowsSystem32Wbem&echo.C:WindowsSystem32WindowsPowerShellv1.0&echo.C:appsWSCCSysinternals Suite&echo.C:appsWSCCNirSoft Utilities&echo.C:appsCalibre&echo.C:appsGitcmd&echo.C:appsGitmingw64bin&echo.C:appsGitusrbin&echo.C:appsnodejs&echo.C:UsersDavidPostillAppDataRoamingnpm
in my case.
– DavidPostill♦
Mar 24 '17 at 18:26
1
@PawełAudionysos I've added a much simpler solution to the answer, which does not require any brackets in the path to be escaped
– DavidPostill♦
Mar 24 '17 at 18:35
1
@PawełAudionysos I've added a command line solution.
– DavidPostill♦
Mar 24 '17 at 19:04
|
show 3 more comments
What am I doing wrong?
You need to surround the last echo
with (
and )
(echo %t%) > paths.txt
Corrected batch file (test.cmd):
@echo off
setlocal
set t=%PATH:;=^&echo.%
echo %t%
(echo %t%) > paths.txt
:endendlocal
Example usage:
> test
C:Windowssystem32
C:Windows
C:WindowsSystem32Wbem
C:WindowsSystem32WindowsPowerShellv1.0
C:appsWSCCSysinternals Suite
C:appsWSCCNirSoft Utilities
C:appsCalibre
C:appsGitcmd
C:appsGitmingw64bin
C:appsGitusrbin
C:appsnodejs
C:UsersDavidPostillAppDataRoamingnpm
> type paths.txt
C:Windowssystem32
C:Windows
C:WindowsSystem32Wbem
C:WindowsSystem32WindowsPowerShellv1.0
C:appsWSCCSysinternals Suite
C:appsWSCCNirSoft Utilities
C:appsCalibre
C:appsGitcmd
C:appsGitmingw64bin
C:appsGitusrbin
C:appsnodejs
C:UsersDavidPostillAppDataRoamingnpm
A simpler solution
This solution does not require any brackets in the path to be escaped.
test.cmd:
@echo off
setlocal
for %%i in ("%path:;=";"%") do (
echo %%~i >> paths.txt
)
:endendlocal
And from the command line:
for %i in ("%path:;=";"%") do echo %~i >> paths.txt
Further Reading
An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
syntax-brackets - Using parenthesis/brackets to group expressions
What am I doing wrong?
You need to surround the last echo
with (
and )
(echo %t%) > paths.txt
Corrected batch file (test.cmd):
@echo off
setlocal
set t=%PATH:;=^&echo.%
echo %t%
(echo %t%) > paths.txt
:endendlocal
Example usage:
> test
C:Windowssystem32
C:Windows
C:WindowsSystem32Wbem
C:WindowsSystem32WindowsPowerShellv1.0
C:appsWSCCSysinternals Suite
C:appsWSCCNirSoft Utilities
C:appsCalibre
C:appsGitcmd
C:appsGitmingw64bin
C:appsGitusrbin
C:appsnodejs
C:UsersDavidPostillAppDataRoamingnpm
> type paths.txt
C:Windowssystem32
C:Windows
C:WindowsSystem32Wbem
C:WindowsSystem32WindowsPowerShellv1.0
C:appsWSCCSysinternals Suite
C:appsWSCCNirSoft Utilities
C:appsCalibre
C:appsGitcmd
C:appsGitmingw64bin
C:appsGitusrbin
C:appsnodejs
C:UsersDavidPostillAppDataRoamingnpm
A simpler solution
This solution does not require any brackets in the path to be escaped.
test.cmd:
@echo off
setlocal
for %%i in ("%path:;=";"%") do (
echo %%~i >> paths.txt
)
:endendlocal
And from the command line:
for %i in ("%path:;=";"%") do echo %~i >> paths.txt
Further Reading
An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
syntax-brackets - Using parenthesis/brackets to group expressions
edited Mar 24 '17 at 20:32
answered Mar 24 '17 at 16:15
DavidPostill♦DavidPostill
108k27235270
108k27235270
I've already tied this. I gotAt this moment Javajdk1.6.0_39bin was unexpected
(thought it's said in Polish and I'm not sure how original message looks like). I have `C:Program Files (x86)Javajdk1.6.0_39bin` on 3 line in the variable if that helps.
– Paweł Audionysos
Mar 24 '17 at 18:03
Let me know If i understand it right. Dose my variable%t%
stores actualecho.
commends in itself? that are then tied to be executed? Because I thought my%t%
variable simply stores a single string that is written to the file...
– Paweł Audionysos
Mar 24 '17 at 18:17
It storesecho
commands in the string. The string looks likeC:Windowssystem32&echo.C:Windows&echo.C:WindowsSystem32Wbem&echo.C:WindowsSystem32WindowsPowerShellv1.0&echo.C:appsWSCCSysinternals Suite&echo.C:appsWSCCNirSoft Utilities&echo.C:appsCalibre&echo.C:appsGitcmd&echo.C:appsGitmingw64bin&echo.C:appsGitusrbin&echo.C:appsnodejs&echo.C:UsersDavidPostillAppDataRoamingnpm
in my case.
– DavidPostill♦
Mar 24 '17 at 18:26
1
@PawełAudionysos I've added a much simpler solution to the answer, which does not require any brackets in the path to be escaped
– DavidPostill♦
Mar 24 '17 at 18:35
1
@PawełAudionysos I've added a command line solution.
– DavidPostill♦
Mar 24 '17 at 19:04
|
show 3 more comments
I've already tied this. I gotAt this moment Javajdk1.6.0_39bin was unexpected
(thought it's said in Polish and I'm not sure how original message looks like). I have `C:Program Files (x86)Javajdk1.6.0_39bin` on 3 line in the variable if that helps.
– Paweł Audionysos
Mar 24 '17 at 18:03
Let me know If i understand it right. Dose my variable%t%
stores actualecho.
commends in itself? that are then tied to be executed? Because I thought my%t%
variable simply stores a single string that is written to the file...
– Paweł Audionysos
Mar 24 '17 at 18:17
It storesecho
commands in the string. The string looks likeC:Windowssystem32&echo.C:Windows&echo.C:WindowsSystem32Wbem&echo.C:WindowsSystem32WindowsPowerShellv1.0&echo.C:appsWSCCSysinternals Suite&echo.C:appsWSCCNirSoft Utilities&echo.C:appsCalibre&echo.C:appsGitcmd&echo.C:appsGitmingw64bin&echo.C:appsGitusrbin&echo.C:appsnodejs&echo.C:UsersDavidPostillAppDataRoamingnpm
in my case.
– DavidPostill♦
Mar 24 '17 at 18:26
1
@PawełAudionysos I've added a much simpler solution to the answer, which does not require any brackets in the path to be escaped
– DavidPostill♦
Mar 24 '17 at 18:35
1
@PawełAudionysos I've added a command line solution.
– DavidPostill♦
Mar 24 '17 at 19:04
I've already tied this. I got
At this moment Javajdk1.6.0_39bin was unexpected
(thought it's said in Polish and I'm not sure how original message looks like). I have `C:Program Files (x86)Javajdk1.6.0_39bin` on 3 line in the variable if that helps.– Paweł Audionysos
Mar 24 '17 at 18:03
I've already tied this. I got
At this moment Javajdk1.6.0_39bin was unexpected
(thought it's said in Polish and I'm not sure how original message looks like). I have `C:Program Files (x86)Javajdk1.6.0_39bin` on 3 line in the variable if that helps.– Paweł Audionysos
Mar 24 '17 at 18:03
Let me know If i understand it right. Dose my variable
%t%
stores actual echo.
commends in itself? that are then tied to be executed? Because I thought my %t%
variable simply stores a single string that is written to the file...– Paweł Audionysos
Mar 24 '17 at 18:17
Let me know If i understand it right. Dose my variable
%t%
stores actual echo.
commends in itself? that are then tied to be executed? Because I thought my %t%
variable simply stores a single string that is written to the file...– Paweł Audionysos
Mar 24 '17 at 18:17
It stores
echo
commands in the string. The string looks like C:Windowssystem32&echo.C:Windows&echo.C:WindowsSystem32Wbem&echo.C:WindowsSystem32WindowsPowerShellv1.0&echo.C:appsWSCCSysinternals Suite&echo.C:appsWSCCNirSoft Utilities&echo.C:appsCalibre&echo.C:appsGitcmd&echo.C:appsGitmingw64bin&echo.C:appsGitusrbin&echo.C:appsnodejs&echo.C:UsersDavidPostillAppDataRoamingnpm
in my case.– DavidPostill♦
Mar 24 '17 at 18:26
It stores
echo
commands in the string. The string looks like C:Windowssystem32&echo.C:Windows&echo.C:WindowsSystem32Wbem&echo.C:WindowsSystem32WindowsPowerShellv1.0&echo.C:appsWSCCSysinternals Suite&echo.C:appsWSCCNirSoft Utilities&echo.C:appsCalibre&echo.C:appsGitcmd&echo.C:appsGitmingw64bin&echo.C:appsGitusrbin&echo.C:appsnodejs&echo.C:UsersDavidPostillAppDataRoamingnpm
in my case.– DavidPostill♦
Mar 24 '17 at 18:26
1
1
@PawełAudionysos I've added a much simpler solution to the answer, which does not require any brackets in the path to be escaped
– DavidPostill♦
Mar 24 '17 at 18:35
@PawełAudionysos I've added a much simpler solution to the answer, which does not require any brackets in the path to be escaped
– DavidPostill♦
Mar 24 '17 at 18:35
1
1
@PawełAudionysos I've added a command line solution.
– DavidPostill♦
Mar 24 '17 at 19:04
@PawełAudionysos I've added a command line solution.
– DavidPostill♦
Mar 24 '17 at 19:04
|
show 3 more comments
Yours t
should not store special control characters as a part of path like "
, &
, |
, %
and so on.
If so, then you can just replace the ending )
character having interference with the parser:
(echo %t:)=^)%) > a
add a comment |
Yours t
should not store special control characters as a part of path like "
, &
, |
, %
and so on.
If so, then you can just replace the ending )
character having interference with the parser:
(echo %t:)=^)%) > a
add a comment |
Yours t
should not store special control characters as a part of path like "
, &
, |
, %
and so on.
If so, then you can just replace the ending )
character having interference with the parser:
(echo %t:)=^)%) > a
Yours t
should not store special control characters as a part of path like "
, &
, |
, %
and so on.
If so, then you can just replace the ending )
character having interference with the parser:
(echo %t:)=^)%) > a
answered Feb 8 '18 at 15:51
AndryAndry
1012
1012
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1191981%2fwrite-multi-line-variable-to-txt-cmd-no-bat%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown