Results 1 to 6 of 6

Thread: Run App

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Run App

    How to make when i click on the button Start Game to open main.exe with ip 127.0.0.1 port : 44405

    Call Shell(App.Path & "\main.exe connect /u" & IP & " /p" & Porta, vbNormalFocus)

    Dim IP As String
    Dim Porta As String

    IP = "127.0.0.1"
    Porta = "44405"

    how to fix it?

  2. #2
    Addicted Member thetimmer's Avatar
    Join Date
    Jan 2014
    Location
    Plano, Texas
    Posts
    243

    Re: Run App

    So your main opens a tcp connection to something listening on your localhost on port 44405? Is that what you're shooting for? Or are you trying to make your main listen on port 44405?
    _____________
    Tim

    If anyone's answer has helped you, please show your appreciation by rating that answer.
    When you get a solution to your issue remember to mark the thread Resolved.


    reference links

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Re: Run App

    the main.exe connects to the IP and Port to connect to them when i press the button Start and to open the application

  4. #4
    Fanatic Member
    Join Date
    Oct 2011
    Location
    Sydney, Australia
    Posts
    756

    Re: Run App

    well what is main.exe? is it a cmd exe or a full blown application? if its cmd then just pass the parameters
    Code:
    Dim IP As String
    Dim Porta As String
    
    IP = "127.0.0.1"
    Porta = "44405"
    Process.Start(Application.Path & "\main.exe","/u" & IP & " /p" & Porta)
    My CodeBank Submissions
    • Listbox with transparency and picture support - Click Here
    • Check for a true internet connection - Click Here
    • Open Cash drawer connected to receipt printer - Click Here
    • Custom color and size border around form - Click Here
    • Upload file to website without user logins, includes PHP - Click Here
    • List All Removable USB Storage Devices - Click Here
    • Custom On/Off Slide Control - Click Here
    • Insert multiple rows of data into one database table using parameters - Click Here
    • Trigger USB/Serial Cash Drawer - Click Here

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    524

    Re: Run App

    Dim ConnectServerIP As String = "94.139.211.213"
    Dim ConnectServerPORT As String = "44405"

    Process.Start(Application.Path & "\main.exe", "/u" & ConnectServerIP & " /p" & ConnectServerPORT)


    Error 1 'Path' is not a member of 'System.Windows.Forms.Application'.

  6. #6
    Fanatic Member
    Join Date
    Oct 2011
    Location
    Sydney, Australia
    Posts
    756

    Re: Run App

    I assumed you would have had it there, try
    Code:
    Application.StartUpPath
    My CodeBank Submissions
    • Listbox with transparency and picture support - Click Here
    • Check for a true internet connection - Click Here
    • Open Cash drawer connected to receipt printer - Click Here
    • Custom color and size border around form - Click Here
    • Upload file to website without user logins, includes PHP - Click Here
    • List All Removable USB Storage Devices - Click Here
    • Custom On/Off Slide Control - Click Here
    • Insert multiple rows of data into one database table using parameters - Click Here
    • Trigger USB/Serial Cash Drawer - Click Here

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width