Copy the contents of cmd into a text file [closed]











up vote
-2
down vote

favorite
1












I want to copy the contents of windows command prompt into a text file. So far I've seen methods only to move the contents of cmd to the text file rather than copying it. Is there a way to have the contents in both cmd and text file.










share|improve this question













closed as unclear what you're asking by LotPings, DavidPostill Nov 28 at 13:12


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • I want this as a command instead of "select all" and "ctrl+c" so that i can use the command in my batch file.
    – Kiran Karthik G
    Nov 28 at 9:22










  • There is no 'copytext' function, but also your question is unclear. Do you want to pipe the results to text file? If so, you can use > to redirect the output to a file. e.g. dir/s > c:dir.txt if you then throw in a | dir.txt you'll see the output in the command prompt too.
    – spikey_richie
    Nov 28 at 9:41












  • I am aware of pipe. But I want the contents in cmd as well instead of being just in the text file. Pipe will move the contents to the file
    – Kiran Karthik G
    Nov 28 at 9:45










  • See my comment, throw in a | as well. e.g. dir/s . > c:dir.txt | type dir.txt, or put type dir.txt on the line below in your batch file.
    – spikey_richie
    Nov 28 at 9:47










  • If you don't want the solution of select/copy/paste, then only PowerShell has this capability.
    – harrymc
    Nov 28 at 10:11















up vote
-2
down vote

favorite
1












I want to copy the contents of windows command prompt into a text file. So far I've seen methods only to move the contents of cmd to the text file rather than copying it. Is there a way to have the contents in both cmd and text file.










share|improve this question













closed as unclear what you're asking by LotPings, DavidPostill Nov 28 at 13:12


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • I want this as a command instead of "select all" and "ctrl+c" so that i can use the command in my batch file.
    – Kiran Karthik G
    Nov 28 at 9:22










  • There is no 'copytext' function, but also your question is unclear. Do you want to pipe the results to text file? If so, you can use > to redirect the output to a file. e.g. dir/s > c:dir.txt if you then throw in a | dir.txt you'll see the output in the command prompt too.
    – spikey_richie
    Nov 28 at 9:41












  • I am aware of pipe. But I want the contents in cmd as well instead of being just in the text file. Pipe will move the contents to the file
    – Kiran Karthik G
    Nov 28 at 9:45










  • See my comment, throw in a | as well. e.g. dir/s . > c:dir.txt | type dir.txt, or put type dir.txt on the line below in your batch file.
    – spikey_richie
    Nov 28 at 9:47










  • If you don't want the solution of select/copy/paste, then only PowerShell has this capability.
    – harrymc
    Nov 28 at 10:11













up vote
-2
down vote

favorite
1









up vote
-2
down vote

favorite
1






1





I want to copy the contents of windows command prompt into a text file. So far I've seen methods only to move the contents of cmd to the text file rather than copying it. Is there a way to have the contents in both cmd and text file.










share|improve this question













I want to copy the contents of windows command prompt into a text file. So far I've seen methods only to move the contents of cmd to the text file rather than copying it. Is there a way to have the contents in both cmd and text file.







windows-7 command-line batch-file cmd.exe






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 28 at 9:16









Kiran Karthik G

1




1




closed as unclear what you're asking by LotPings, DavidPostill Nov 28 at 13:12


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as unclear what you're asking by LotPings, DavidPostill Nov 28 at 13:12


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • I want this as a command instead of "select all" and "ctrl+c" so that i can use the command in my batch file.
    – Kiran Karthik G
    Nov 28 at 9:22










  • There is no 'copytext' function, but also your question is unclear. Do you want to pipe the results to text file? If so, you can use > to redirect the output to a file. e.g. dir/s > c:dir.txt if you then throw in a | dir.txt you'll see the output in the command prompt too.
    – spikey_richie
    Nov 28 at 9:41












  • I am aware of pipe. But I want the contents in cmd as well instead of being just in the text file. Pipe will move the contents to the file
    – Kiran Karthik G
    Nov 28 at 9:45










  • See my comment, throw in a | as well. e.g. dir/s . > c:dir.txt | type dir.txt, or put type dir.txt on the line below in your batch file.
    – spikey_richie
    Nov 28 at 9:47










  • If you don't want the solution of select/copy/paste, then only PowerShell has this capability.
    – harrymc
    Nov 28 at 10:11


















  • I want this as a command instead of "select all" and "ctrl+c" so that i can use the command in my batch file.
    – Kiran Karthik G
    Nov 28 at 9:22










  • There is no 'copytext' function, but also your question is unclear. Do you want to pipe the results to text file? If so, you can use > to redirect the output to a file. e.g. dir/s > c:dir.txt if you then throw in a | dir.txt you'll see the output in the command prompt too.
    – spikey_richie
    Nov 28 at 9:41












  • I am aware of pipe. But I want the contents in cmd as well instead of being just in the text file. Pipe will move the contents to the file
    – Kiran Karthik G
    Nov 28 at 9:45










  • See my comment, throw in a | as well. e.g. dir/s . > c:dir.txt | type dir.txt, or put type dir.txt on the line below in your batch file.
    – spikey_richie
    Nov 28 at 9:47










  • If you don't want the solution of select/copy/paste, then only PowerShell has this capability.
    – harrymc
    Nov 28 at 10:11
















I want this as a command instead of "select all" and "ctrl+c" so that i can use the command in my batch file.
– Kiran Karthik G
Nov 28 at 9:22




I want this as a command instead of "select all" and "ctrl+c" so that i can use the command in my batch file.
– Kiran Karthik G
Nov 28 at 9:22












There is no 'copytext' function, but also your question is unclear. Do you want to pipe the results to text file? If so, you can use > to redirect the output to a file. e.g. dir/s > c:dir.txt if you then throw in a | dir.txt you'll see the output in the command prompt too.
– spikey_richie
Nov 28 at 9:41






There is no 'copytext' function, but also your question is unclear. Do you want to pipe the results to text file? If so, you can use > to redirect the output to a file. e.g. dir/s > c:dir.txt if you then throw in a | dir.txt you'll see the output in the command prompt too.
– spikey_richie
Nov 28 at 9:41














I am aware of pipe. But I want the contents in cmd as well instead of being just in the text file. Pipe will move the contents to the file
– Kiran Karthik G
Nov 28 at 9:45




I am aware of pipe. But I want the contents in cmd as well instead of being just in the text file. Pipe will move the contents to the file
– Kiran Karthik G
Nov 28 at 9:45












See my comment, throw in a | as well. e.g. dir/s . > c:dir.txt | type dir.txt, or put type dir.txt on the line below in your batch file.
– spikey_richie
Nov 28 at 9:47




See my comment, throw in a | as well. e.g. dir/s . > c:dir.txt | type dir.txt, or put type dir.txt on the line below in your batch file.
– spikey_richie
Nov 28 at 9:47












If you don't want the solution of select/copy/paste, then only PowerShell has this capability.
– harrymc
Nov 28 at 10:11




If you don't want the solution of select/copy/paste, then only PowerShell has this capability.
– harrymc
Nov 28 at 10:11















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Mouse cursor on multiple screens with different PPI

Agildo Ribeiro

Sometime when accessing a menu: “Ubuntu 16.04 has experienced an internal error”