Forms :: Send A File Over The Network?

Sep 4, 2010

I ahve tried using the

My.Computer.Network.UploadFile("C:UsersPhillipDesktop est.txt", "http://10.0.0.2/c:/text.txt", "my username, "mypassword")
but it does not work...whats the proper format for entering a location to a computer over the network?Also... whats a way to send a file to a computer over the internet such as my friends computer... The reason I am doing this is because I plan to make some programs that run based on text files and a basic example of this is a chat program... but I do plan for other things as well...

EDIT:Used this

My.Computer.Network.UploadFile("C:UsersPhillipDesktop est.txt", "\PHILIPADAMS-PCUSERSPhilip Adams ext.txt", "myusername", "mypass")

and it worked... now how can I send over the internet... Also is there another way i can send over the network like using the IP instead of computer name?Also how do I send it to other computers?

View 5 Replies


ADVERTISEMENT

VS 2008 Network App - Send Message Or Network Package To Some Of The Clients In The Network

Aug 18, 2009

Here is my idea so far: I have a bunch of computers connected in a local network. One of them is a MySQL server, one will have a vb.NET program wich will act as a "second server" and the rest will be different clients. What I want to do is that the "second server" will send out some kind of message or network package to some of the clients in the network, and they will execute a code based on what message it is, or what kind of package it is. I'll give you a simple example:

[Code]...

View 6 Replies

How To Send File Between PC's On Local Network By Using PC Name

Jan 24, 2012

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click

Dim FileToCopy As String
Dim NewCopy As String
FileToCopy = "C:Users????DesktopfileName"
NewCopy = "C:Users???Desktop
ewfileName"

[Code]...

View 2 Replies

System.Windows.Forms.WebBrowser.Navigate To Load A Network File?

Aug 30, 2011

We are using a web browser to show a pdf file located in a folder on the network. The code looks like this:

System.Windows.Forms.WebBrowser.Navigate(New Uri("\hostpath ofile.pdf"))

This works fine, but now I have to use a specific user to access this file and I don't know how to include the user name, password and domain in the URI. Is it posible to add user credentials to the URI? Can I use another variant of Navigate method to accomplish this?

View 1 Replies

How To Send Network Msg In .net

Jul 14, 2011

I have an application where i have to schedule some msg to my network users and as per the sheduler msg should be popup on their machine on local network.

View 3 Replies

How To Send Commands Over A Network

May 26, 2010

I have never programmed a network program before and would like to learn at my own pace. Also I am not asking anyone to write this complete program for me, just bits of code to help me write a complete program. (though if you do code it all I won't complain.) I already tried using internet tutorials but none of them seem to work.I am trying to program a simple form with 4 buttons, and 2 users.The first button is a connectivity button. "Green" for connected, "Red" for not.The second button is a "Connect" Button which will connect to another computer with this program installed/active. (I want it as simple as possible)and the next 2 buttons switch between "1" and "0" depending on user input(Default "0"). the first button is the local user button and the second is the remote user button. When the local user clicks the local button then what he/she changes it to will be displayed at the remote site. The same thing will happen with the remote user.

I know how to place all the buttons where they belong, and to change the local text, but I have no Idea how to connect to a remote program or to pass messages between the two users. Can anyone suggest some Simple code to do this. (something that I will be able to learn and use to make more complex code later on.)

View 2 Replies

Send An Image Over The Network?

May 1, 2009

I was wondering if there is an easy and fast way to send an image (or files in general) which is small, as in around 30KB, over the network using VB .NET. the most i was able to do at one point is to read the image (or file) as text, then send each character over the network, but it took way too much time for the file to get sent, and then translated from text to file once again on the other side. I don't know much about network programming, because i just started learning about the subject.

View 3 Replies

Send Files Across Network?

Jul 13, 2010

I have a xml file I want to send to a ubuntu server. I have created the xml file using a data table.

Before I was using the following to save on the current machine in the application folder. However, the customer has changed and now wants to store it on a remote network ubuntu server on the network.

What is the best way to send files across the network? Is it possible to send files from a windows machine to a ubuntu server machine?

View 3 Replies

Send Text To Another PC In The Network?

Nov 22, 2009

i want to send Text over network to another pc. The text should be seen in a MessageBox.What technique could i use? Is UDPClient the right thing?

View 1 Replies

How To Send Variable Arrays Via Network

Mar 7, 2009

I am really new to .net, I've got the basics to a game down, I need to be able to send variable arrays between programs, I am aiming for local network first, then I'll tackle internet. Does .net have any simple way of doing this? Was difficult in vb 6. It needs to be fast so both machines get the same view of the game.

View 5 Replies

Send A Character To A Network Printer?

Oct 14, 2010

I need to create an exe in VS2010 with VB that does the same thing as a simple command line. The reason is related to debugging. I can type ECHO ~ > \WIN7MMF25$ in a command window on a W2K8R2E server and it will send the ~ character to the shared "printer" on the Win7 PC. Actually, the device is a cash drawer connected to LPT1 that pops open when it sees a ~ character.

Anyway, I created a CMD file with that command, saved it, fired it, and the cash drawer on the Win7 PC opens. However, when I try to call that command file from our ERP application, it doesn't work (it does work if the remote PC is XP, though - just not if it is Win7 or Vista).

Anyway, I was hoping if I created a simple EXE and called THAT from the ERP software, perhaps whatever issue is bugging us will not bug us anymore.

View 5 Replies

Send An Object Over A Network Stream

Oct 18, 2010

So i'm still goofing around with this chat app thing. Current when a user sends a message it sends to all clients connected. The server stores all clients and their IPs in a hash table, so what i want to do is each time a client joins, the server will broadcast the updated hashtable to each client. I know i can make a mess and get the server to broadcast each row of the hash table as a string but i think this way would be cleaner, either that or send the client object instead of the whole hash table.

[Code]...

View 3 Replies

Send Message To Another Computer Using LAN Or Network?

Oct 20, 2010

to do a program that can send a message in other computerthru LaN or Computer NetworkExample im in Server and i will send it is \PC-01here is the picture i design it but i don't know the code

View 1 Replies

Send Voice From Headphone Through A Network?

Dec 30, 2010

I am new to VB.NET and I need to develope an application that will enable me capture voice(Probabily from headset) and send it to another listener over a network.

View 1 Replies

Network Stream - Send / Receive Text

Sep 17, 2010

I've solved part of the problem, but something I've just realised is the information just isn't getting through and EVERY example I find uses a Console type application and what about us people who don't wanna develop a Console application? I don't but nooooo they don't seem to understand that at MS and put one example which uses exactly that.

[Code]...

View 4 Replies

Send A XML Serialized Class Over A Network Stream?

Oct 13, 2009

I'm trying to send a XML serialized class over a network stream

the send is working

Dim IP As Net.IPAddress = System.Net.IPAddress.Parse(IPAddress)
Dim IPE As New Net.IPEndPoint(IP, 10003)
Dim TCPClient As New Net.Sockets.TcpClient

[Code]....

I always get an error {"Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."} The XMLFile has the xml document in it most of the time and I can go on and everything works but 1 out of every 5 times it doesn't work at all and the XMLFile contains nothing ..

View 6 Replies

Send AT Commands To Router Network Port?

Aug 9, 2010

How can i send AT commands to my router network port?

View 6 Replies

Share, Send And Receive Files Over Network?

Feb 3, 2008

I'm working on a network chat for my office I want to add a way for users to share files or be able to send and receive file.

View 7 Replies

Cannot Connect To Network To Send Data Through Message Board

Nov 2, 2009

I have this codes here whereby my objective is to develop a writing network applications of programming, a means of sending data to a message board(messaging system). My problem is I couldn't connect it to the server's IP address and port num to send a data through a message board. However I could only display at Form2 txtReceive.
Text = HexConvert.Data_Asc_Hex(sData),

Whereby this code could only convert whatever data(txtSend) that is being typed in, could then convert hex decimal into a textbox(txtReceive). The final result that I would want to achieve is to be able to display the at the textbox(txtReceive) is the <"message protocol"> & <"hex message that is being typed"> & <"parity bit"> into the txtReceive box.

Form form 1, my codes are....
Imports System.Net.Sockets
Imports System.IO
Public Class Form1
Const portNo As Integer = 1234
Dim client As TcpClient
[Code] .....

View 2 Replies

Create A Program That Will Send Data Across Network To Another Computer?

Mar 23, 2011

I want to create a program that will send data across my network to another computer. The data will be taken and used as sort of a command for the computer to load a webpage, or whatever I decide to do with it. I was familiar with the winsock control in Vb6.

View 2 Replies

Send A Personalized Form Created In .NET To Another Network Computer?

Aug 9, 2010

I have created multiple forms in VB.NET that need to be sent out in emergency situations. For example, the Fire form will instruct employees that they need to evacuate the building, the Tornado form will instruct employees that they need to go to the basement, etc. I have the forms created where they will display over my own computer when I run the application. I have also figured out how to get the list of computers from Active Directory. Now I am stuck. How do I make the form display on another network computer? Does anyone know how to do this?

View 2 Replies

Taking A Screenshot As A System.Drawing.Bitmap And Send It Thorough A Network?

Nov 18, 2010

I'm taking a screenshot as a System.Drawing.Bitmap and trying to send it through a network as a byte array.If I take the original screenshot and simply save it to disk, it's about 200Kb.Instead I'm saving it to a memorystream so I can write that back to a Byte Array and it's coming out over 6Mb.

[code]...

View 2 Replies

Send A Message To Another Computer Screen In Network Using Visual Studio 2008?

Jun 11, 2011

how to send a message to another computer in my companys network using visual studio 2008...I would like to be able to list all the computer names on the network and select certain ones and send them a message that would pop up on their screen

View 3 Replies

Forms :: Creating A New Wireless Network?

Mar 23, 2010

I'd like to build a program which shares files between two computers. My method for doing that is setting up a home network, basically, on one computer, put a file there, and share that file on the network. The other computer would then connect to the network (through my application) and find the file and read it. I know this is very long. I would just like you to help me start up.How do I create a wireless network ENTIRELY THROUGH VB during the initial setup of the application? I don't want the user to deal with creating the network himself.

View 1 Replies

Forms :: Make Apps Work In Network?

Apr 10, 2009

i have finished build a simple inventory program. But this program just only work in single pc not at network. Could any body tell me how to make it work in network (multiple pc in network)?

View 7 Replies

Forms :: Sync Between PPC And PC Cross The Wireless Network?

Feb 3, 2009

may i know how to do about the sync between PPC and PC cross the wireless network?

or else got other idea about the retrieve the data from PC ?

View 1 Replies

Sockets - Check That If Another Computer In The Network Send Some String Data To The Listener Computer?

Mar 19, 2012

i have a task to create a TCP Server (a program that is listening on its network card interfaces for incoming data stream).I have search on the internet and i found that i can use two methods : Socket or TCPListener class.I have created an example for Socket class, but i wondering how could i test it? I need to check that if another computer in the network send some string data to the listener computer , then this message should be displayed.Here is the example from microsoft that i am using for TCP Server using Socket:

Public Shared Sub Main()
' Data buffer for incoming data.
Dim data = nothingc[code]....

But it does not work because of the PORT setting.If in the TCP Server i have "Dim localEndPoint As New IPEndPoint(ipAddress, 0)" the client crashes, but if i change the port from any (0) to 11000 for example,the client works fine.Do you know why?

Later edit2:Maybe i should have started with this question:Which method is recommended for my scope?asynchronous or synchronous method ?

View 2 Replies

Get File Size Of File On Mapped Network Drive?

Aug 11, 2011

I was using the following code to check the file size of a data file on my local machine. Now the data files have been moved to a mapped network drive and this code no longer works. What do I need to change or how do I access file size on a mapped drive?

Dim MyFile As New FileInfo(MyFilePath)
Dim FileSize As Long = MyFile.Length

View 12 Replies

Send Infopath Forms Via Outlook?

May 12, 2010

I am new to Office programming. I am trying to automate sending Infopath forms through Outlook. The form must be displayed in the body of the e-mail, which the customer can fill in and send it back. I am able to do this manually by selecting File->New->Choose Infopath Form through Outlook.

View 1 Replies

Forms :: Send Email After Five Ping Fails

Jan 7, 2009

I'm making a network monitoring program, and the way it works is after five ping-fails, it sends an email, but I cant get it to work! the test email works fine, so its not the email code.

Dim s As Short
Dim newstr(4) As String
Dim I As Integer
Dim name As String
Dim MS As String
[Code] .....

View 13 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved