Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Geting command on .txt file:)  (Read 13339 times)

0 Members and 1 Guest are viewing this topic.

dando

  • Guest
Geting command on .txt file:)
« on: May 02, 2004, 04:35:14 AM »
i mean,that when i will run a .bat file,it will do
ipconfig
and then make a .txt file that will have the result's inside
i understood that there is something like: ipconfig >> output.txt
but im only geting a blank output.txt
thx in advnce.

sky

  • Guest
Re: Geting command on .txt file:)
« Reply #1 on: May 03, 2004, 12:42:41 PM »
Hi dando,

pipeing is done by >

u shd type ipconfig > output.txt

dev

  • Guest
Re: Geting command on .txt file:)
« Reply #2 on: May 11, 2004, 04:20:06 PM »
the > pipes the output to a new textfile
the >> pipes the output to an already existing textfile and appends it to the end.

My batfile is much like this (as it uses ipconfig once) and uses several of your commands. The source is included http://www.computerhope.com/cgi-bin/yabb/YaBB.cgi?board=2;action=display;num=1084313588;start=0#0

billrich

  • Guest
Re: Geting command on .txt file:)
« Reply #3 on: September 14, 2009, 02:33:44 PM »
>,  redirect  >>, append  |, pipe

C:\>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : ok.cox.net
        IP Address. . . . . . . . . . . . : 9999999999999
        Subnet Mask . . . . . . . . . . . : 255.255.248.0
        Default Gateway . . . . . . . . . : 68.97.208.1

C:\>ipconfig >  saveip.txt

C:\>type saveip.txt

Windows IP Configuration


Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . : ok.cox.net
        IP Address. . . . . . . . . . . . : 999999999999999
        Subnet Mask . . . . . . . . . . . : 255.255.248.0
        Default Gateway . . . . . . . . . : 68.97.208.1
« Last Edit: September 14, 2009, 03:30:39 PM by billrich »

Salmon Trout

  • Guest
Re: Geting command on .txt file:)
« Reply #4 on: September 14, 2009, 02:38:12 PM »
Congratulations on reviving a thread that is 5 and a quarter years old!

kpac

  • Web moderator


  • Hacker

  • kpac®
  • Thanked: 184
    • Yes
    • Yes
    • Yes
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 7
Re: Geting command on .txt file:)
« Reply #5 on: September 14, 2009, 02:38:57 PM »
Yeah, CH was even using YaBB back then!

billrich

  • Guest
Re: Geting command on .txt file:)
« Reply #6 on: September 14, 2009, 03:32:09 PM »
?
« Last Edit: September 15, 2009, 06:00:10 PM by billrich »

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Geting command on .txt file:)
« Reply #7 on: September 14, 2009, 07:05:39 PM »
We repeat what Jesus said and it is more than four years?

you actually believe this is an accurate analogy?

I was trying to dereference Null Pointers before it was cool.

BatchFileBasics



    Hopeful

    Thanked: 18
    Re: Geting command on .txt file:)
    « Reply #8 on: September 15, 2009, 06:04:28 PM »
    We repeat what Jesus said and it is more than four years?

    but christians\catholics have a reason, they believe he sacrificed himself for them (im sorry if i do not know how it goes)

    and you are just bringing back an unneccassary post
    When the power of love overcomes the love of power the world will know peace - Jimi Hendrix.

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Geting command on .txt file:)
    « Reply #9 on: September 15, 2009, 08:00:22 PM »
    the mexicans call him hey-zus.
    I was trying to dereference Null Pointers before it was cool.

    Helpmeh



      Guru

    • Roar.
    • Thanked: 123
      • Yes
      • Yes
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 8
    Re: Geting command on .txt file:)
    « Reply #10 on: September 15, 2009, 08:04:44 PM »
    the mexicans call him hey-zus.
    That's because they pronounce Js like Hs.
    Where's MagicSpeed?
    Quote from: 'matt'
    He's playing a game called IRL. Great graphics, *censored* gameplay.

    BatchFileBasics



      Hopeful

      Thanked: 18
      Re: Geting command on .txt file:)
      « Reply #11 on: September 15, 2009, 09:58:45 PM »
      yea, and bc, i would like it if you say latin's instead of mexicans. its like saying, the americans say it like gee-zuz
      When the power of love overcomes the love of power the world will know peace - Jimi Hendrix.

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Geting command on .txt file:)
      « Reply #12 on: September 15, 2009, 10:00:54 PM »
      its like saying, the americans say it like gee-zuz

      And that is bad because?
      I was trying to dereference Null Pointers before it was cool.

      BatchFileBasics



        Hopeful

        Thanked: 18
        Re: Geting command on .txt file:)
        « Reply #13 on: September 15, 2009, 10:14:11 PM »
        what im trying to say is that just because its spanish doesn't mean it comes from mexicans.

        and for some reason, i can't describe what im trying to tell you...
        When the power of love overcomes the love of power the world will know peace - Jimi Hendrix.

        Geek-9pm


          Mastermind
        • Geek After Dark
        • Thanked: 1026
          • Gekk9pm bnlog
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 10
        Re: Geting command on .txt file:)
        « Reply #14 on: September 15, 2009, 10:35:32 PM »
        what im trying to say is that just because its spanish doesn't mean it comes from mexicans.
        and for some reason, i can't describe what im trying to tell you...
        Thank you. My two daughters are both fluent in Spanish and have spent no more that a day in Mexico. But we went to Disney World three times.