Windows 10: How to get commnd prompt data to a file

Discus and support How to get commnd prompt data to a file in Windows 10 Support to solve the problem; I'm running a bat file in Command Prompt and want to capture it's output to a text file. I though "> filename" on the end of the command would redirect... Discussion in 'Windows 10 Support' started by James1093, Oct 28, 2018.

  1. James1093 Win User

    How to get commnd prompt data to a file


    I'm running a bat file in Command Prompt and want to capture it's output to a text file.
    I though "> filename" on the end of the command would redirect to a file, but it writes an empty file.
    Any solution ?
    Thanks.

    :)
     
    James1093, Oct 28, 2018
    #1
  2. Nachappa C K Win User

    Program data files not saving

    Hi,

    Thank you for getting back with a reply.

    This issue may happen due to system file corruption. I suggest you to run System file checker. System File checker (SFC) scan is done to check if there are any corrupted system files that could be causing this issue. Kindly follow
    the below given steps:

    • Press Windows key + X, select
      Command prompt (Admin)
      to bring up elevated Command prompt.
    • In Command prompt type sfc/scannow and press enter.
    • Restart the computer.
    If no corrupted system files were found in the previous state, then I suggest you to try the following steps:

    • Open command prompt by pressing Windows key + X and selecting “Command prompt admin”.
    • In command prompt, type the following commands and press Enter after each command:
    DISM.exe /Online /Cleanup-image /Scanhealth

    DISM.exe /Online /Cleanup-image /Restorehealth

    • Close the command prompt and restart the PC and check if it works.

    Keep us posted on Windows related queries and we will be happy to assist you further.
     
    Nachappa C K, Oct 28, 2018
    #2
  3. JeffHeppner Win User
    Program data files not saving

    I've just executed all of the above commands. No issues were detected with the scannow. None of the above steps have resolved my problem. Very perplexing what is causing the problem on the laptop but not on the desktop pc.
     
    JeffHeppner, Oct 28, 2018
    #3
  4. hurricane51 Win User

    How to get commnd prompt data to a file

    Edge Search Does Not Permit Change of Region


    I got these suggestions from the Microsoft Community forum.No. 1 worked for me:

    Thank you for posting the query on Microsoft Community. I am glad to assist you on this.
    We have reproduce the issue here and we are able to access non-regional search for google using Microsoft Edge.
    I would suggest you to try the below steps and check if it helps.
    Step 1:
    Clear browsing data option of Microsoft Edge and check if you face the issue. To do so perform the steps below.

    1. Click on the More actions icon next to the feedback icon present on top right corner of the Project Spartan homepage.
    2. Select Settings and click on Choose what to clear.
    3. Check the boxes Browsing history, Cookies and saved website data and Cached data and files and click on Clear.
    Step 2:
    I suggest you to create a new user account and check if the issue occurs.

    1. Go to Settings.
    2. Choose Accounts and then select Family and other users.
    3. Select add someone else on this PC.
    4. Enter a user name and hit next.
    5. Click on Finish.
    6. Sign out from the current Account and Log into the new account.
    Step 3:
    It could also happen because of network issue. I suggest you to try with different network connection and check if it helps.
     
    hurricane51, Oct 28, 2018
    #4
Thema:

How to get commnd prompt data to a file

Loading...
  1. How to get commnd prompt data to a file - Similar Threads - commnd prompt data

  2. How to change a file's permission through powershell or command prompt

    in User Accounts and Family Safety
    How to change a file's permission through powershell or command prompt: Is there a way to make a file get executed automatically as admin through command prompt or powershell? Lets say there is a file.exe and I want to tick that box that says "execute as administrator" without right clicking the file and doing it through the user interface....
  3. How to change a file's permission through powershell or command prompt

    in Windows 10 Support
    How to change a file's permission through powershell or command prompt: Is there a way to make a file get executed automatically as admin through command prompt or powershell? Lets say there is a file.exe and I want to tick that box that says "execute as administrator" without right clicking the file and doing it through the user interface....
  4. Outlook data file

    in Windows 10 Customization
    Outlook data file: I have more than one data file in Outlook. How to I combine them and return to just the Outlook data file? https://answers.microsoft.com/en-us/windows/forum/all/outlook-data-file/f6791306-702a-406f-8f04-ad859b637a64
  5. How to get back the classic uac prompt

    in Windows 10 Customization
    How to get back the classic uac prompt: How do I get back the classic uac prompt? I have tried the Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks method but it did not work. My PC is at the latest update. What should I do?...
  6. How to get back the classic uac prompt

    in Windows 10 Customization
    How to get back the classic uac prompt: How do I get back the classic uac prompt? I have tried the Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\TestHooks method but it did not work. My PC is at the latest update. What should I do?...
  7. How to redirect a file of input data in PowerShell?

    in Windows 10 Support
    How to redirect a file of input data in PowerShell?: In the past, before Windows 10 update, we had Command Prompt, but now we have PowerShell instead. I would like to know how to use a redirected file of input data into an EXE program. I used to write 'C:\Users\Owner\desktop>program.exe < input.dat' but the system says that '<'...
  8. how to disable the UAC prompt when renaming a file?

    in Windows 10 Support
    how to disable the UAC prompt when renaming a file?: How do I turn it off? I am the admin of my pc and do-not-want this damn prompt every time I change a file's name. 51697
  9. How do I get back data

    in Windows 10 Support
    How do I get back data: Hi, pls need ur help in getting data bck. I tried to restore the pic bck last night but I couldn't find the restore point for yesterday I could only see earlier than that and all the employees data were taken yesterday. Pls save my ASS. 72052
  10. Can't get a login prompt

    in Windows 10 Support
    Can't get a login prompt: On my other computer I misunderstood some troubleshooting instructions and selected "diagnostic startup" in msconfig. When I rebooted I found that I could no longer get the prompt to enter my PIN or password, meaning that I can no longer log in. All I see is my name and,...