About 488,000 results
Open links in new tab
  1. How to output result of a PowerShell script to a text file

    Apr 21, 2019 · How can I output the result of this script (success or failure) to a text file? I tried adding 2> "OutputPath" at the end to stream the output to this location but it did not work.

  2. powershell Write-Output with >> to a file.txt -Append

    Mar 5, 2020 · I am creating a script and want to both use Write-Host and Write-Output As I work I want a backup of information I pull from AD to also become attached to a .txt file. This is more of a backup in ...

  3. How to redirect output to a file and stdout - Stack Overflow

    A note on terminology: when you execute foo > output the data is written to stdout and stdout is the file named output. That is, writing to the file is writing to stdout. You are asking if it is possible to write …

  4. python - Correct way to write line to file? - Stack Overflow

    May 28, 2011 · When the file is opened in text mode (the default), it is translated automatically to the correct line ending for the current platform. Writing "\r\n" would produce "\r\r\n" which is wrong.

  5. How do I create a file and write to it? - Stack Overflow

    What's the simplest way to create and write to a (text) file in Java?

  6. scripting - How to redirect the output of a PowerShell to a file during ...

    I have a PowerShell script for which I would like to redirect the output to a file. The problem is that I cannot change the way this script is called. So I cannot do: .\\MyScript.ps1 > output.t...

  7. python - Directing print output to a .txt file - Stack Overflow

    130 Is there a way to save all of the print output to a txt file in python? Lets say I have the these two lines in my code and I want to save the print output to a file named output.txt.

  8. Displaying Windows command prompt output and redirecting it to a file

    Apr 28, 2009 · If, for example, I were to run the command dir > test.txt, this would redirect output to a file called test.txt without displaying the results. How could I write a command to display the output and …

  9. command line - How can I redirect Windows cmd standard output and ...

    875 I'm trying to redirect all output (standard output and standard error) of a Windows command to a single file: C:\ cd \ dir 1> a.txt 2> a.txt Output: The process cannot access the file because it is being …

  10. How to output something in PowerShell - Stack Overflow

    Jan 11, 2010 · Write-Output "test1"; Write-Host "test2"; "test3"; then, if you call the script with redirected output, something like yourscript.ps1 > out.txt, you will get test2 on the screen test1\ntest3\n in the …