473,776 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Accessing of .exe file of other computer

9 New Member
Hello,
My computer is connected in LAN and so many other computers too. So, now i want to access any .exe file of any other computer. Before that i am accessing the Computer Name and IPAddress of other computer using following code---
Expand|Select|Wrap|Line Numbers
  1.             Dim s1, s2 As String
  2.             Dim IPHost As IPHostEntry = Dns.GetHostEntry("ASHEESH")
  3.             'IPHost = Dns.Resolve("ASHEESH")
  4.             s1 = IPHost.HostName.ToString
  5.             'MsgBox(IPHost.HostName.ToString)
  6.             Dim aliases() As String
  7.             aliases = IPHost.Aliases
  8.             Dim addr() As IPAddress
  9.             addr = IPHost.AddressList
  10.             s2 = addr(0).ToString
  11.             'MsgBox(addr(0).ToString)
  12.             'MsgBox(s1 & s2)
  13.             Label2.Text = s1 & s2
  14.             Dim ep As EndPoint = New IPEndPoint(addr(0), 80)
  15.             Dim sock As Socket = New Socket(AddressFamily.InterNetwork, _  SocketType.Stream, ProtocolType.Tcp)
  16.             sock.Connect(ep)
  17.             If (sock.Connected) Then
  18.                 Label1.Text = s1 & s2 & "Connected"
  19.                 'MsgBox("ok")
  20.             Else
  21.                 Label1.Text = s1 & s2 & "Not Connected"
  22.             End If
  23.             'Response.Redirect_("http://192.168.42.44/localhost/printingtest/publish.htm")
  24.             sock.Shutdown(SocketShutdown.Both)
Can i access any .exe file using this code... because it is saying me that u are connected with other computer so because of that...........
Please answer me as early as possible its urgency ............. really....
Apr 1 '08 #1
1 1657
jeffstl
432 Recognized Expert Contributor
I am not familiar with the way you are accessing other PCs on a network in itself.

However, if you can create a connection in your app to a specific directory you should be able to access any file on that PC including .exes as long as permissions are set up for it, or your code can fill in parameters to allow for access.

Also it may help to understand more about what your end goal is. Are you wanting to launch a .exe from your forms? Or allow a download of the .exe?

Or are you wishing your ASP pages to call the .exe to process data? If this is the case, depending on how big your process is, you can use asynchronous processing to call an exe and release the web session back to the user.
A perfect example of this can be found here
http://www.codeproject.com/KB/vbscript/AsyncSample.aspx

OR another good bet is to transform your .exe into a .dll to be called within a ASP page as an object. You would have to move the code of the .exe to a new project and export it as a dll, register it, etc then you can access in your page.

Not sure if this is what your looking for.
Apr 9 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
4319
by: prodirect | last post by:
Hi all, I hope someone can help me. I've recently created a database and wanted to put it up on an ftp sight so that multiple people could access the same tables at the same time from different geographical locations. I have been completely unsucessful in acheiving this goal so far however. Things I have tried: Create a shortcut to ftp sight via browser then tried to map local drive to
3
1594
by: __Z__ | last post by:
Here's what I'd like to do: Computer A is in Texas. Computer B is in Idaho. I need to use Computer A to the file system on Computer B. Both computers have Internet connections, but they won't be configured as webservers. Is there a good starting point for doing this kind of point-to-point stuff, or will the code have to be written from the ground up? This is part of a larger program, so I believe I need a library (preferrably with...
6
1567
by: Steve | last post by:
I have a folder object whose associated files collection I can iterate through using a "for each / next" loop to retrieve all the file names individually. I cannot however directly access the n'th item in the files collection? Here is my code so far; ' create FSO & folder objects Dim objFSO objFSO = Server.CreateObject("Scripting.FileSystemObject") Dim objFld 'folder object & objFld = objFSO.GetFolder(Server.MapPath("/test"))
4
3781
by: Khalique | last post by:
I have built a web service whose purpose is to copy files from a secure place to client machine and vice versa. The problem I am having is perhaps related to permissions and access rights. For testing purposes, the secure place is setup on the client machine. The client (window app) calls the web service (on a different machine) and connects successfully to the web service. However, when client calls a method that copies the file from...
0
12088
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the likelihood of CRM success from less than 20 percent to 60 percent. WHITEPAPER :
2
4525
by: Vincent | last post by:
I have been trying to find some API routines that will allow me to determine the name of the computer that is accessing a file on a server. I have found the NetFileEnum call (returns the names of the files in use and the names of the users accessing them). I have also found the NetConnectionEnum call (returns the name of the computer that is accessing a share). I do not see any way of correlating the data that these two api calls...
6
2688
by: MattPKaiser | last post by:
I am trying to find a way to check if a computer on a network is "online" so that I can access a file on a share. In short I maintain a list of computers that have my service running (in the client application) and in my client program I allow the user to change the computer that they are accessing. If a computer that is on the list becomes unplugged and I try to access a file with a FileStream the filestream creation takes 8-10...
4
4224
by: Noy B | last post by:
Hi, I have developed a small application that is using a MSAccess DB. the problem is that it was developed on a machine where the application and the DB are both located. now it needs to be change that the application will be able to run on any other machine (using \\ syntax on the run command- not a problem) using the DB located on a static-different machine. for this purpose I need to create a Remote Connection from my
5
1497
by: maya | last post by:
sorry, I don't know where else to ask... I can't get to some websites.. the browser just hangs for a long time.. sites like nytimes.com, drudgereport.com/ cnn.com, many more, this is very strange, I can get to some sites fine, but on some others the browser (both browsers) just hangs for ever and I don't get there.. my internet provider is Comcast, should I call them about this? it's very puzzling.. there are a few sites I need to get...
0
9628
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10289
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10120
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9923
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8952
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6722
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5493
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3622
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.