-
Mar 27th, 2014, 06:52 AM
#1
Thread Starter
Fanatic Member
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?
-
Mar 27th, 2014, 08:08 AM
#2
Addicted Member
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
-
Mar 27th, 2014, 08:35 AM
#3
Thread Starter
Fanatic Member
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
-
Mar 27th, 2014, 07:37 PM
#4
Fanatic Member
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
-
Mar 29th, 2014, 06:53 AM
#5
Thread Starter
Fanatic Member
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'.
-
Mar 29th, 2014, 04:59 PM
#6
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|