Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Worked great once I changed the path for the utils:
/h> perl sh: C:WindowsSystem32ipconfig.exe: command not found ------------------------------------------------ Computer .... ATHENAE User ........ law Connected ... (none) ------------------------------------------------ Type ' -h' for help /h> gvim [ - my $ipconfig = 'C:\Windows\System32\ipconfig.exe'; - my $netsh = 'C:\Windows\System32\netsh.exe'; + my $ipconfig = 'C:/Windows/System32/ipconfig.exe'; + my $netsh = 'C:/Windows/System32/netsh.exe'; ] /h> perl ------------------------------------------------ Computer .... ATHENAE User ........ law Connected ... 1 ------------------------------------------------ Type ' -h' for help #1 [Ethernet adapter Ish2] Desc ........ Intel(R) Ethernet Converged Network Adapter X540-T2 +#2 DHCP ........ No MAC ......... A0:36:9F:15:CE:28 IP Addr ..... Mask ........ Gateway .....
Probably don't need the absolute path. I've yet to see a windows that didn't have system32 in its path.

C:/Windows/System32/<cmd> works in cmd.exe... the default shell, and in bash.exe if you run cygwin...

My mom needed something like this a few days ago -- had to talk her through finding the right numbers (she's 85) from the normal output...

Maybe I can use this as an excuse to put linux on her machine?? ;-)

In reply to Re: script for Windows by perl-diddler
in thread script for Windows by golux

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others about the Monastery: (5)
    As of 2018-07-17 02:23 GMT
    Find Nodes?
      Voting Booth?
      It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

      Results (353 votes). Check out past polls.