none
From IP to a Command! RRS feed

  • Question

  • So recently my friend made a simple script, and we want to skip the work of making the command every time.

    For example we want to go from : 162.249.74.145 5116

    To : ./drop -U -s 162.249.73.1 -h 162.249.74.145 -p 5116,5116 -t 600

    I want that 162.249.74.145 from 162.249.74.145 5116 to be copied here:

    ./drop -U -s 162.249.74.145 -h 162.249.74.145 -p 5116,5116 -t 600

    And the 5116 from 162.249.74.145 5116 to be here:

    ./drop -U -s 162.249.74.145 -h 162.249.74.145 -p 5116,5116 -t 600

    And then this :

    ./drop -U -s 162.249.74.145 -h 162.249.74.145 -p 5116,5116 -t 600

    needs to be edited, so that the third number

    ./drop -U -s 162.249.74.145 -h 162.249.74.145 -p 5116,5116 -t 600

    Is for 1 smaller (74-1)

    ./drop -U -s 162.249.73.145 -h 162.249.74.145 -p 5116,5116 -t 600

    And then the fourth number 

    ./drop -U -s 162.249.74.145 -h 162.249.74.145 -p 5116,5116 -t 600

    Always has to be 1! So that the final command looks like this:

    ./drop -U -s 162.249.73.1 -h 162.249.74.145 -p 5116,5116 -t 600

    Thanks!

    • Moved by Tina-Shi Friday, May 29, 2015 9:51 AM the issue is not related to the vs test
    Thursday, May 21, 2015 9:24 PM

Answers

All replies

  • Hi RollAssasin,

    Thank you for posting in MSDN forum.

    Since this forum is discuss to the VS Unit Test issue, so as yuo siad the simple script.

    Could you please tell me if the simple script is related to the unit test script?

    As you siad about making the command from IP, I am afraid that the issue is out of support range of this forum.

    So if possbel, please share me more detailed message about making the commnd from IP so that we will furhter help you find correct forum support this issue.

    Thanks for your understanding!

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Sunday, May 24, 2015 10:02 AM
  • Hey thanks for answering !

    I just wanted to make a simple program that does this for me.

    I wanted it to look like Entering an IP and Port in a textbox and then that you click "Make" or something like that to make this a specific command that uses the IP from the textbox!

    Sunday, May 24, 2015 7:52 PM
  • Hi RollAssasin,

    Thanks for your reply.

    From your description, you mean that you want to create a simple program to make this a specific command that uses the IP from the textbox, am I  right?

    If yes, could you please tell me what type program you want to create from the VS IDE?

    What language you want to use for your program?

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, May 25, 2015 2:47 AM
  • Hi RollAssasin,

    Since this forum is discuss this VS Test, so I think that the issue is out of support range of this forum. I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.

    Thanks for your understanding!

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, May 29, 2015 9:50 AM
  • If you're writing an executable I'd try over here.

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral%2Cvbgeneral%2Cvcgeneral&filter=alltypes&sort=lastpostdesc

    or if you're scripting this you can ask for help over here.

    https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=ITCG%2Cwinserverpowershell&filter=alltypes&sort=lastpostdesc

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Friday, May 29, 2015 2:18 PM
    Moderator
  • If you want someone else to create the script for you, you can request a script here:

    https://gallery.technet.microsoft.com/scriptcenter/site/requests

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join('6D73646E5F6B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Friday, May 29, 2015 3:21 PM
    Moderator