CrazyEngineers
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Kaustubh Katdare

    AdministratorAug 8, 2013

    You haven't mentioned whether you want the copy the contents manually or use commands to do so. Copying manually is easy. Assuming that you're in Windows environment, you'll have to right-click on the command prompt Window and select 'Mark'. Then select the text you want to copy and then Rt.Click -> Copy.

    I think you already know this. Please clarify your requirements.
    Are you sure? This action cannot be undone.
    Cancel
  • Nayan Goenka

    MemberAug 8, 2013

    After any command you execute, add this ">filename.txt". this will add the output of your command into thisfile. For ex:

    tracert <a href="https://www.crazyengineers.com">CrazyEngineers</a> > trace.txt

    This command will make a file trace.txt in your current working directory and copy all the output there instead of showing it on the screen.
    Are you sure? This action cannot be undone.
    Cancel
  • Vishal Sharma

    MemberAug 8, 2013

    I'm not being answered to what I've asked
    Leaving the manual stuff behind, I want to go for a programmatic way.

    After any command you execute, add this ">filename.txt". this will add the output of your command into thisfile. For ex:

    tracert <a href="https://www.crazyengineers.com">CrazyEngineers</a> > trace.txt

    This command will make a file trace.txt in your current working directory and copy all the output there instead of showing it on the screen.​
    yes, this works.. It is called re-directing and it works only with commands.. my question is not this. If something is already being displayed, that content should be moved to a text file. I think in linux we have script command to perform this kind of operation.. what about windows?
    Are you sure? This action cannot be undone.
    Cancel
  • rukawa

    MemberAug 8, 2013

    Vishal0203
    I think in linux we have script command to perform this kind of operation.. what about windows?

    What's the way to do this kind of operation in linux?
    Are you sure? This action cannot be undone.
    Cancel
  • Vishal Sharma

    MemberAug 9, 2013

    rukawa
    What's the way to do this kind of operation in linux?

    Script i think.. never used linux though.. got this suggestion from someone
    Are you sure? This action cannot be undone.
    Cancel
  • sookie

    MemberAug 27, 2013

    Have you tried doskey /history >> commands.log ?
    Are you sure? This action cannot be undone.
    Cancel
  • KenJackson

    MemberAug 27, 2013

    Vishal0203
    I think in linux we have script command to perform this kind of operation.. what about windows?
    Most things that you can do in Linux, including <a href="https://en.wikipedia.org/wiki/Script_(Unix)" target="_blank" rel="nofollow noopener noreferrer">Script (Unix)</a>, you can do in the <a href="https://cygwin.com/" target="_blank" rel="nofollow noopener noreferrer">Cygwin</a> environment in Windows. That is, download setup-x86.exe or setup-x86_64.exe from Cygwin and execute it to install a Linux-like tools for Windows. I couldn't use Windows without it.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register