Click here to Skip to main content
15,920,603 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to Get the MSI installer Path Pin
Dave Kreskowiak30-Nov-09 7:07
mveDave Kreskowiak30-Nov-09 7:07 
GeneralRe: How to Get the MSI installer Path Pin
The Man from U.N.C.L.E.30-Nov-09 7:15
The Man from U.N.C.L.E.30-Nov-09 7:15 
GeneralRe: How to Get the MSI installer Path Pin
Dave Kreskowiak30-Nov-09 7:18
mveDave Kreskowiak30-Nov-09 7:18 
GeneralRe: How to Get the MSI installer Path Pin
The Man from U.N.C.L.E.30-Nov-09 7:31
The Man from U.N.C.L.E.30-Nov-09 7:31 
GeneralRe: How to Get the MSI installer Path Pin
Dave Kreskowiak30-Nov-09 10:45
mveDave Kreskowiak30-Nov-09 10:45 
AnswerRe: How to Get the MSI installer Path Pin
The Man from U.N.C.L.E.30-Nov-09 7:07
The Man from U.N.C.L.E.30-Nov-09 7:07 
GeneralRe: How to Get the MSI installer Path Pin
coolpjmartin9-Dec-09 0:26
coolpjmartin9-Dec-09 0:26 
QuestionFTP Question Pin
Member 470558430-Nov-09 4:03
Member 470558430-Nov-09 4:03 
Hello people i have an ftp question in my application for employe monitoring i capture screen and then i upload it to server every 1 seccond for now i use this:

Uploader:
<br />
        On Error Resume Next<br />
        FileUploadedSuccessfuly = False<br />
        Dim local_file As String = whatfile<br />
        Dim remote_file As String = WORKSERVER & "/" & System.IO.Path.GetFileName(whatfile).ToString<br />
        Dim cls_request As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create(remote_file), System.Net.FtpWebRequest)<br />
        Dim user_name As String = "root"<br />
        Dim password As String = "administrator"<br />
<br />
        'Establish credentials for logging into ftp site<br />
        cls_request.Credentials = New System.Net.NetworkCredential(user_name, password)<br />
<br />
        'Set properties<br />
        cls_request.KeepAlive = False<br />
        cls_request.Proxy = Nothing<br />
        cls_request.Method = System.Net.WebRequestMethods.Ftp.UploadFile<br />
        cls_request.UseBinary = True<br />
<br />
        'Read in the file<br />
        Dim b_file() As Byte = System.IO.File.ReadAllBytes(local_file)<br />
<br />
        'Upload the file<br />
<br />
        Dim cls_stream As System.IO.Stream = cls_request.GetRequestStream()<br />
        cls_stream.Write(b_file, 0, b_file.Length)<br />
        cls_stream.Close()<br />
        cls_stream.Dispose()<br />
        FileUploadedSuccessfuly = True<br />
        Exit Sub<br />


And Timer:
<br />
            If FileUploadedSuccessfuly = True Then<br />
                FileUploadedSuccessfuly = False<br />
                CatchScreen()<br />
                UPfile("C:\EMON\bin\tmp_" + THISPCUsername + ".jpg")<br />
            End If<br />


so timer every seccond check if last file was uploaded and if it is then it grabs new picture and overwrite it and again uploading but problem is that every seccond it connects to server again from begining with pass and user name i want that it connects when i start application and stay connected and uploads same file every seccond from timer but waits until last one is uploaded successfully and if connection is droped that it reconects! Smile | :) thanks i tried to do that but i didnt succed for now so if u can help thanks!!! Thumbs Up | :thumbsup:
AnswerRe: FTP Question Pin
Dave Kreskowiak30-Nov-09 7:04
mveDave Kreskowiak30-Nov-09 7:04 
GeneralRe: FTP Question Pin
Member 470558430-Nov-09 7:46
Member 470558430-Nov-09 7:46 
GeneralRe: FTP Question Pin
Dave Kreskowiak30-Nov-09 10:57
mveDave Kreskowiak30-Nov-09 10:57 
GeneralRe: FTP Question Pin
Member 470558430-Nov-09 11:01
Member 470558430-Nov-09 11:01 
AnswerRe: FTP Question Pin
Member 47055841-Dec-09 8:50
Member 47055841-Dec-09 8:50 
QuestionVirtual Ketboard in vb.net forms Pin
faravani30-Nov-09 2:27
faravani30-Nov-09 2:27 
AnswerRe: Virtual Ketboard in vb.net forms Pin
dan!sh 30-Nov-09 2:58
professional dan!sh 30-Nov-09 2:58 
GeneralRe: Virtual Ketboard in vb.net forms Pin
faravani30-Nov-09 16:41
faravani30-Nov-09 16:41 
GeneralRe: Virtual Ketboard in vb.net forms Pin
Dave Kreskowiak30-Nov-09 17:09
mveDave Kreskowiak30-Nov-09 17:09 
GeneralRe: Virtual Ketboard in vb.net forms Pin
dan!sh 30-Nov-09 17:50
professional dan!sh 30-Nov-09 17:50 
Questionhow to communicate with a PLC by a visual basic 9 software Pin
Joshua8229-Nov-09 23:32
Joshua8229-Nov-09 23:32 
AnswerRe: how to communicate with a PLC by a visual basic 9 software Pin
DaveAuld29-Nov-09 23:49
professionalDaveAuld29-Nov-09 23:49 
GeneralRe: how to communicate with a PLC by a visual basic 9 software Pin
Joshua8230-Nov-09 2:50
Joshua8230-Nov-09 2:50 
AnswerRe: how to communicate with a PLC by a visual basic 9 software Pin
Luc Pattyn30-Nov-09 1:23
sitebuilderLuc Pattyn30-Nov-09 1:23 
QuestionPrompting user to select point in AutoCad using VB/VB.NET Pin
vijaylumar28-Nov-09 20:01
vijaylumar28-Nov-09 20:01 
AnswerRe: Prompting user to select point in AutoCad using VB/VB.NET Pin
DaveAuld28-Nov-09 22:01
professionalDaveAuld28-Nov-09 22:01 
GeneralRe: Prompting user to select point in AutoCad using VB/VB.NET Pin
vijaylumar29-Nov-09 0:16
vijaylumar29-Nov-09 0:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.