I am running a web app on my local computer and not from a server. I wrote the following code to act as the start interface to bring the browser up and run the program. It worked fine on Windows 7/8. I recently up-graded to Win 10 and now I get an error saying it can’t find the file. The browser(Microsoft Edge) shows the correct IP Address, so I think the issue is when starting the ARPCalc.exe app.
Dim FileLoc, NewIP As String
Dim sh as New Shell
Dim currentFolder as string
sh.timeout = 10000
Sh.Mode = 0
Dim cmd as String = “For /f ““tokens=2 delims=:”” %G in (‘ipconfig ^| find ““IPv4 Address””’) do @echo %G”
Sh.Execute(Cmd)
NewIP = LTrim(Sh.Result) (This is 10.0.0.19 on my computer)
NewIP = “start http://” + NewIP
currentFolder = SpecialFolder.CurrentWorkingDirectory.NativePath
FileLoc = currentFolder + “ARPCalc.exe”
sh.Execute FileLoc
Sh.Execute NewIP
Sh.Close
Any suggestions would be appreciated.
Larry
[quote=220600:@Larry Cluchey]I am running a web app on my local computer and not from a server. I wrote the following code to act as the start interface to bring the browser up and run the program. It worked fine on Windows 7/8. I recently up-graded to Win 10 and now I get an error saying it can’t find the file. The browser(Microsoft Edge) shows the correct IP Address, so I think the issue is when starting the ARPCalc.exe app.
Dim FileLoc, NewIP As String
Dim sh as New Shell
Dim currentFolder as string
sh.timeout = 10000
Sh.Mode = 0
Dim cmd as String = “For /f ““tokens=2 delims=:”” %G in (‘ipconfig ^| find ““IPv4 Address””’) do @echo %G”
Sh.Execute(Cmd)
NewIP = LTrim(Sh.Result) (This is 10.0.0.19 on my computer)
NewIP = “start http://” + NewIP
currentFolder = SpecialFolder.CurrentWorkingDirectory.NativePath
FileLoc = currentFolder + “ARPCalc.exe”
sh.Execute FileLoc
Sh.Execute NewIP
Sh.Close
Any suggestions would be appreciated.
Larry[/quote]
What happens when you type the URL in the Edge browser address bar ?
I would start writing to a log the location (strings) that FileLoc and NewIP were resolved to.
I get the following error message:
"HTTP 404 error
Thats odd… Microsoft Edge cant find this page"
Larry
[quote=221031:@Larry Cluchey]I get the following error message:
"HTTP 404 error
Thats odd… Microsoft Edge cant find this page"
Larry[/quote]
Is there any reason why you cannot use http://127.0.0.1 ?
And have you checked if the Eddie’s Electronics sample works? As part of the debugging process you have to start discarding possible causes, see what works and what does not. A working sample can help you to make a differential analysis.
I had trouble with other tools in windows 10, when installing visual studio. IIS was crossing with apache Wamp, so my localhost was not where I thought it was.
[quote=221116:@Julio Debroy]I had trouble with other tools in windows 10, when installing visual studio. IIS was crossing with apache Wamp, so my localhost was not where I thought it was.
[/quote]
Xojo standalone does not use wamp or Apache. I verified built apps work just fine on 127.0.0.1 as long as the proper port is set.
I was getting the IP address of the active port and used that. If I use 127.0.0.1 how do I set the port?