473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Accessing of .exe file of other computer

9
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 1640
jeffstl
432 Expert 256MB
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
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...
3
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...
6
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...
4
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...
0
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...
2
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...
6
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...
4
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...
5
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.