Results 1 to 14 of 14
  1. #1
    Maniac101's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    USA
    Posts
    299
    Reputation
    11
    Thanks
    217
    My Mood
    Twisted

    [Help] Run commands on command prompt [Solved]

    ok so im back again lost again. ok in the past to test the server we have been using a bat file to start the game heres the code
    Code:
    @start bin32\aion.bin -ip: -port:2106 -cc:1 -noauthgg -noweb -lang:enu
    ok so what it does is starts aion and tells it what ip and port to connect to what country code(cc), that there is no game guard auth needed and no web, and that the lang is English.

    ok all that isnt needed all i need is the ip and port and convert that all the VB

    i tried
    Code:
     Process.Start("cmd.exe")
            SendKeys.Send("@start bin32\aion.bin -ip:IP Here -port:2106 -cc:1 -noauthgg -noweb -lang:enu {Enter} exit {Enter}")
    which worked......the first time after that it kept opening 10+ command prompts then tossed errors because it typed 1 part of that line in each box
    is there any way to limit the amount it can open or a different way to go at this
    i really dont care if there is a cmd that opens and closes thats not a big deal if i cant get it meshed with this it will run off that bat anyhow.
    Last edited by Maniac101; 01-29-2011 at 01:21 PM.
    Add Me on MSN Maniac101@live.com
    [IMG]https://i820.photobucke*****m/albums/zz121/lilmatt1101/maniac101r.png[/IMG]

    [img]https://www.danasof*****m/sig/Maniac288377.jpg[/img]

  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Shell("@start bin32\aion.bin -ip: -port:2106 -cc:1 -noauthgg -noweb -lang:enu")



  3. The Following User Says Thank You to Blubb1337 For This Useful Post:

    Maniac101 (01-29-2011)

  4. #3
    ImTheLastNightmare's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    In your bed,closet,behind you....
    Posts
    84
    Reputation
    7
    Thanks
    32
    My Mood
    Angelic
    Code:
            Process.Start("cmd.exe")
            SendKeys.Send("@start bin32\aion.bin -ip:IP Here -port:2106 -cc:1 -noauthgg -noweb -lang:enu {Enter} exit {Enter}")
            While True
                Dim p As Process() = Process.GetProcessesByName("cmd.exe")
                If p.Length > 1 Then
                    Do Until p.Length = 1
                        p(0).Kill()
                    Loop
                End If
            End While
    Give it a try, for me it works.....

    Edit:
    Or do what Blubb said

  5. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Why would you do such complicated crap o_o?



  6. #5
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    lol That is the most basic thing for me xD (And Im noob XD)

    You can do that:
    Code:
    Shell("YOURCODE", vbhide) ' vbHide is to the cmd doesnt show..





  7. The Following User Says Thank You to Lyoto Machida For This Useful Post:

    Maniac101 (01-29-2011)

  8. #6
    Iamazn1's Avatar
    Join Date
    Oct 2009
    Gender
    male
    Posts
    407
    Reputation
    12
    Thanks
    50
    Code:
    Dim psi as new ProcessStartInfo()
    psi.FileName = "cmd.exe"
    psi.Arguments = "@start bin32\aion.bin -ip: -port:2106 -cc:1 -noauthgg -noweb -lang:enu"
    Process.Start(psi)

  9. #7
    o0OpurezO0o's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    behind you.
    Posts
    354
    Reputation
    10
    Thanks
    26
    My Mood
    Sick
    Try my source

    On Error Goto Err
    Process.Start("cmd.exe")
    SendKeys.Send("@start bin32\aion.bin -ip:IP Here -port:2106 -cc:1 -noauthgg -noweb -lang:enu {Enter} exit {Enter}")
    Err:
    msgbox("Error Occured on Attempt!", vbCritical+vbOkOnly, "Error")

    i mean, atleast mine gives a error.

  10. #8
    Maniac101's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    USA
    Posts
    299
    Reputation
    11
    Thanks
    217
    My Mood
    Twisted
    Quote Originally Posted by Blubb1337 View Post
    Shell("@start bin32\aion.bin -ip: -port:2106 -cc:1 -noauthgg -noweb -lang:enu")
    ok this is what i was trying before but i keep getting a file not found error after i build it and place the exe in the folder
    folder structure
    NCSoft>Aion(where launch goes)>bin32(where aion.bin is located)
    Add Me on MSN Maniac101@live.com
    [IMG]https://i820.photobucke*****m/albums/zz121/lilmatt1101/maniac101r.png[/IMG]

    [img]https://www.danasof*****m/sig/Maniac288377.jpg[/img]

  11. #9
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Try it w/o the @start.



  12. The Following User Says Thank You to Blubb1337 For This Useful Post:

    Maniac101 (01-29-2011)

  13. #10
    Maniac101's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    USA
    Posts
    299
    Reputation
    11
    Thanks
    217
    My Mood
    Twisted
    ok so i guess its not smart to try and code on a huge lack of sleep ty so much i never thought to remove the @start it works perfect now i can finally finish the rest of this and we can release our game server ty again and ty to all that posted
    Add Me on MSN Maniac101@live.com
    [IMG]https://i820.photobucke*****m/albums/zz121/lilmatt1101/maniac101r.png[/IMG]

    [img]https://www.danasof*****m/sig/Maniac288377.jpg[/img]

  14. #11
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,668
    My Mood
    Breezy
    Shell by default start's at the program's directory. (eg: C:\Users\Blah\Documents\Visual Studio 2010\Projects\SomeThing\Debug). You have to include the whole path otherwise it will go looking in the same fodler as your program.

    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  15. #12
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Well, it is solved now anyways.



  16. #13
    Maniac101's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    USA
    Posts
    299
    Reputation
    11
    Thanks
    217
    My Mood
    Twisted
    Quote Originally Posted by master131 View Post
    Shell by default start's at the program's directory. (eg: C:\Users\Blah\Documents\Visual Studio 2010\Projects\SomeThing\Debug). You have to include the whole path otherwise it will go looking in the same fodler as your program.

    right and the way its set up to run is you put it in the aion folder then it looks for bin32/aion.bin
    again folder structure of aion
    NCSoft/Aion(launcher goes here)/bin32/aion.bin<---- starting file
    the code worked perfect ty again blubb
    Add Me on MSN Maniac101@live.com
    [IMG]https://i820.photobucke*****m/albums/zz121/lilmatt1101/maniac101r.png[/IMG]

    [img]https://www.danasof*****m/sig/Maniac288377.jpg[/img]

  17. #14
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    What don't you people get about not posting in solved threads?