Send Files Over TCP?
Jan 22, 2011
I'm currently developing a new system and I need to be able to upload a file from my computer to another (the server). I'm using TCP right now but I might use UDP in the future. The server I've made has multi threading so it can receive files from me while also serving another user with for example account information.[code]...
View 1 Replies
ADVERTISEMENT
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
Feb 21, 2009
how to send multiply files over FTP with Visual Basic 2008 (.NET).
Here is the code I'm using:
Code:
Try
Dim clsRequest As System.Net.FtpWebRequest = _
DirectCast(System.Net.WebRequest.Create("ftp://FTP server here/" & "FTP output filename here" & ".txt"), System.Net.FtpWebRequest)
[code].....
View 4 Replies
Sep 29, 2009
how to make a program that sends files from a computer to another?
View 7 Replies
Aug 19, 2009
Right now this can only delete one file, how can I change it so that it can Empty the TEMP folders contents into the recycle bin?
[Code]...
View 13 Replies
Apr 14, 2009
OK I was a little hasty in marking my earlier thread resolved... I'm sending a file from my server using the following code :
[Code]...
The received file (in my test case it is a PNG file) comes through corrupted - I'm 99.99% sure its a case of encoding but I've tried various options and in each case when I open the original file and the received file in notepad the files are visibly of the same origin but some characters are wrong in the received file. I'm sure its a simple answer but I can't find it - what am I doing wrong in terms of re-assembling the received file?
View 1 Replies
Apr 9, 2010
I am trying to attach files that get emailed along with the text data from my text boxes on buttonclick.
Here is what part of my code looks like:
mail.To.Add(TextBox2.Text)
mail.Subject = ComboBox1.SelectedItem.ToString
[code].....
View 7 Replies
Aug 31, 2008
So ive looked everywhere but every example i find doesnt work on visual studio 05 and doesnt convert properly. I simply want to send info from one computer to another through direct connection. if anyone could point me in the right direction it would really be helpful. most stuff i find seems to be more complicated than what im looking for.
then just one other question. both computers will be going through a router. as long as i have the port im using forwarded on the hosts side, that shouldnt be a problem, right?
View 1 Replies
Mar 20, 2010
I am trying to make an app which can send/receive files/pictures. I am trying to make a app which will get a picture of the users screen and send it to me, and display it in a picturebox at a set interval. With this, I will be able to sort of see what someone is looking at without having to have him send screenshots constantly.
Remote assistance does not seem to work for these apps, shows black, but I can make the program already get an accurate screenshot and display it of this program, I just need to know how to make it send it to me and display it to picturebox.
The thing I have been using is the MultiUser TCP chat application off MSDN's website, I don't know if this will work, but I need to make it send somehow and display it.
View 6 Replies
Aug 19, 2010
making an application which send some files to LPT port.My Code is
Dim PortName As String
Dim pr As Process
Dim args As New ProcessStartInfo("cmd.exe")[code]....
look at the bold line.1st line Send a file to PORT and 2nd line deleting that file.I am execute this code in a loop.that means those 2 lines are executed in multiple times.As a reason of that,some times these 2 commands are not working properly. so that the file is not deleted. How can the commands are executed in proper way?
View 10 Replies
Feb 19, 2012
What's the best way to do this without using FTP?
The client would need to be able to communicate with the server for several simple tasks, such as checking if the file on the client is different from the file on the server. Or issue a "create folder" command. And of course the file transfer itself.[code]...
View 1 Replies
May 12, 2012
If we need to send all song from all rows to USB Flash what should we add some more code?
I tried to add this more code but still send only one row.
Private Sub SendToMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
SongInfoDataGridView.MultiSelect = True
[Code]....
View 7 Replies
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
Dec 1, 2009
I have encountered an error whenever I try to run my SendEmail method, the method will actually loop through a folder of files and attach the files to the mail. I am able to send email for "Records", but when the method reaches "Lists", it throws a "NullReferenceException" on the line which I have bold.
Code:
Public Sub SendEmail()
'Create a outlook application
Dim olApp As Outlook.Application
olApp = New Outlook.Application
Dim olMail As Outlook.MailItem
[Code] .....
View 2 Replies
Apr 21, 2012
What code can I use to send a simple text file to someone else's computer and choosing a save location and vice versa from theirs and loading it into a rich text box in their application that they have open, and vice versa? Their application is the same as mine (sort of like how an instant messenger works-except it does not save, send, and load text files like I am aiming for)
View 3 Replies
Jan 27, 2010
Can I send multiple files as 1 fax? I currently can fax one file at a time. I was wonder can I send multiple files to the same fax number on one call? Without physicall trying to combine files. For example. If I wanted to send a word doc and a pdf to the same person can I do that without having to dial twice? I hope that makes sense. I don't know if you can because I see that FaxDocment.body is string and not a list of strings. I am using FaxServer and FaxDocument. I just Found FaxDocument.Bodies. Does anyone have an example on how to use this? I know that FaxDocument.Body is a file path. FaxDocument.Bodies is an object? I don't see an list of path or whatever.
View 1 Replies
Jul 7, 2009
I am currently working on a program that only I can use to send and retreve files from an external harddrive through my older laptop. But I have only just started and need help with the login form. I want my password and user on labels placed on form 2 and need form 1 to retreive them then I click the login button, however I want form1 to close if the user or password are incorrect. How could I go about placing an if then statment for if correct then it opens a new window if wrong then end program. Heres my login code so far.
Private Sub Login_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Login.Click
If User.Text = "*********" And Pass.Text = "*******" Then
MessageBox.Show("Welcome")
[Code]...
View 2 Replies
Oct 7, 2011
I am dealing with survey data at the moment and i am interested in extracting data of identical 5 columns from 3 excel files and then aggregate them into one excel file.below is the code im working on, fairly new to VBA so my apologies if my code doesnt make sense to you.
Sub extraction()
Dim a As Range
Dim r As Range
Dim wbSource As Workbook
Dim wbDestination As Workbook
[Code]...
View 1 Replies
Oct 27, 2010
What to use for adding multiple attachment to a email. I'm using VB 2010.
First, I have a Form in my company web site to fill a reclamation ..... when you fill and send it, it convert the form into a PDF, save it in the client side "TEMP" and finally get the PDF and send it to a email..... that's perfectly fine. I add to the form the capability of attach multiple files with file upload to the same "TEMP" and displayed in a Grid View to remove or add files and send everything to a email, the attachment capability is working. Everything is working with the PDF not the files(attachments).
There is a way to get the multiple files from the "TEMP" folder and add it to some dynamically variable (array list, attachment collection, list collection, etc.) so all can be send to the email. I already know the way to put it into the email with the PDF.
The problem is to get the files and add it to the dynamic variable and that it work with the email. If the code is need it.
View 8 Replies
Nov 9, 2009
[Code]....
Now as you can see it is sending the textbox1 text and then pressing enter then sending textbox2 text! Theres quite a few problems in that but before i discuss note: This code is in a Timer. Problem #1: It does not send the keys fully correct all the time because its trying to send them all at once! So i want it to send them 1 letter after the other with 200 ms sleep in them! Problem #2: The sleep is not working: The reason i know is because even after it did the first textbox1 text it didnt wait that 2000 ms!
View 31 Replies
May 28, 2009
Are there any good books out there that will show someone how to set up a form using Visual basic that will take information and send it to the server and then send a recipient an Email?
View 2 Replies
Nov 7, 2010
I am using send keys to send the squence Alt W (a integer called 'index') Escape
[Code]...
View 1 Replies
May 9, 2012
I am trying to send keys to a control on my form. But I am getting a NullReferenceException and I don't know why. The code is about as basic as it gets: [Code] The error reported is object reference not set to an instance of an object but Send is a shared method so doesn't need an instance. Strangely if I ignore the error it works fine and F4 is passed to the control. I know there was an issue with sendkeys and UAC but I thought this had been solved (I am using 4.0 framework).
View 1 Replies
Apr 9, 2012
I have a filter that is used to populate a grid view and the url will conain: /example/grid?value1=1&value2=2
It will then have a link to page 2, which allows them to edit something.I then want them to click a link that will send them back to the gridview under the same parameters of: /example/grid?value1=1&value2=2
Is this possible? How do I hold on and fill in the URL values so it knows how to refill the grid view accordingly?
View 1 Replies
Nov 7, 2009
I get an error on SMTP.Send(MyMailMessage) saying 'Failed to send'
My
Dim MyMailMessage As New MailMessage()
ProgressBar1.Value = 30
MyMailMessage.From = New MailAddress("MyGmailEmail")
MyMailMessage.To.Add("MyEmail")
[Code]...
View 3 Replies
Apr 29, 2009
I am trying to use the send keys function to send text to another program.I ahve gotten it al working well, except for using () as I know sendkeys doesnt like these.I have tried using the Replace function in several places in my code to replace the ( with {(} and {+0} etc, with various other options tried.But when I run the program, it seems to skip this out completly and leaves them in the string as (, and therefore it errors and wont run.When I step through it, it goes through the function but doesnt alter the strng as it should. This is the code to send the string and my attempt at making it replace the () in the module
Module TextReplacement
Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As Int32) As Short
Dim counter As Integer
Dim sData() As String
[code]....
The error I get when i try send "Test :)" is: ArgumentExcveption was unhandled "SendKeys string 'Test :)' is not valid"
View 2 Replies
Aug 27, 2011
I'm making an auto-typer and I need it to only send one line of a multi-lined textbox at a time. It looks like this right now;
If Label1.Text = "1" Then
SendKeys.Send(TextBox2.Text)
SendKeys.Send("{Enter}")
Thread.Sleep(TextBox13.Text)
Timer2.Enabled = False
End If
I want the Textbox2.text to be entered one line at a time and then to sleep for the desired time.
View 5 Replies
Oct 18, 2011
how to code that send SMS through broadband either Smart or Globe that send SMS via VB.Net and it connected to the Port?
View 6 Replies
Mar 6, 2010
I have a problem.. every program i make in VB.net 2008 express wont start on my friends PC or any other except for mine laptop and mine PC... Instead, they get the "Send/Dont send" error...
View 13 Replies
Jul 4, 2010
How can I have a time out between every key I send ?
[Code]...
I don't want to use the sleep method, or to put each code under a timer ... Anything else that I could use?
View 9 Replies