Click here to Skip to main content
15,890,947 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: Clickonce and command line args? Pin
Eddy Vluggen9-Apr-09 9:28
professionalEddy Vluggen9-Apr-09 9:28 
AnswerRe: Clickonce and command line args? Pin
Jon_Boy9-Apr-09 9:49
Jon_Boy9-Apr-09 9:49 
GeneralRe: Clickonce and command line args? Pin
Eddy Vluggen9-Apr-09 10:21
professionalEddy Vluggen9-Apr-09 10:21 
QuestionDetermine what type of object a GUID belongs to. Pin
Jay Royall9-Apr-09 2:09
Jay Royall9-Apr-09 2:09 
AnswerRe: Determine what type of object a GUID belongs to. Pin
Dave Kreskowiak9-Apr-09 3:43
mveDave Kreskowiak9-Apr-09 3:43 
GeneralRe: Determine what type of object a GUID belongs to. Pin
Jay Royall9-Apr-09 4:06
Jay Royall9-Apr-09 4:06 
AnswerRe: Determine what type of object a GUID belongs to. Pin
Eddy Vluggen9-Apr-09 8:50
professionalEddy Vluggen9-Apr-09 8:50 
Questionfile download/copy from server to client Pin
Anoop Brijmohun8-Apr-09 23:49
Anoop Brijmohun8-Apr-09 23:49 
Hi guys....

i have tried many ways to do this and have googled and searched msdn but to no avail.

i want my client app.exe to check app.exe on the server.
if the server app.exe is of a new version then the client app.exe to copy and overwrite itself.

the reason for this is i have many client pc's at a site.
i simply want to drop the latest app.exe on the server and whenever a client app.exe is launched then it should do the above check.thus the client app.exe is always the latest app.

this is my code below.
Dim objFSO As New Object
                   Dim objLocalFile, objServerFile As New Object
                   Dim dtmLocalDate, dtmServerDate As New Object

                   Const OverwriteExisting = True

                   'COPY FILE

                   objFSO = CreateObject("Scripting.FileSystemObject")

                   objLocalFile = objFSO.GetFile(My.Settings.LocalFile.ToString.Trim)
                   dtmLocalDate = objLocalFile.DateLastModified

                   objServerFile = objFSO.GetFile(My.Settings.ServerFile.ToString.Trim)
                   dtmServerDate = objServerFile.DateLastModified

                   If dtmLocalDate > dtmServerDate Then
                      objFSO.CopyFile(objServerFile.Path, objLocalFile.Path, OverwriteExisting)
                      'OR
                      'My.Computer.Network.DownloadFile("\\Server\app.exe", "C:\client\app.exe", "domain\username", "Password", True, 10000, True)
                   End If


the error i get is....
"The system detected a possible attempt to compromise security. Please ensure that you can contact you server that authenticated you."

thanks

Anoop
AnswerRe: file download/copy from server to client Pin
Dave Kreskowiak9-Apr-09 3:36
mveDave Kreskowiak9-Apr-09 3:36 
GeneralRe: file download/copy from server to client Pin
Anoop Brijmohun9-Apr-09 3:44
Anoop Brijmohun9-Apr-09 3:44 
GeneralRe: file download/copy from server to client Pin
Dave Kreskowiak9-Apr-09 4:06
mveDave Kreskowiak9-Apr-09 4:06 
GeneralRe: file download/copy from server to client Pin
Anoop Brijmohun9-Apr-09 4:18
Anoop Brijmohun9-Apr-09 4:18 
QuestionHelp for Do While Loop [SOLVED] Pin
vijay24828-Apr-09 23:36
vijay24828-Apr-09 23:36 
AnswerRe: Help for Do While Loop Pin
Anoop Brijmohun9-Apr-09 0:10
Anoop Brijmohun9-Apr-09 0:10 
GeneralMessage Closed Pin
9-Apr-09 0:27
vijay24829-Apr-09 0:27 
GeneralRe: Help for Do While Loop Pin
Anoop Brijmohun9-Apr-09 0:45
Anoop Brijmohun9-Apr-09 0:45 
GeneralRe: Help for Do While Loop Pin
vijay24829-Apr-09 0:57
vijay24829-Apr-09 0:57 
QuestionComboBox Type Pin
Dalek Dave8-Apr-09 23:15
professionalDalek Dave8-Apr-09 23:15 
AnswerRe: ComboBox Type Pin
Jay Royall8-Apr-09 23:23
Jay Royall8-Apr-09 23:23 
GeneralRe: ComboBox Type Pin
Dalek Dave8-Apr-09 23:39
professionalDalek Dave8-Apr-09 23:39 
Questionread grayscale image Pin
shefa' isied8-Apr-09 20:01
shefa' isied8-Apr-09 20:01 
AnswerRe: read grayscale image Pin
Deresen8-Apr-09 23:45
Deresen8-Apr-09 23:45 
GeneralRe: read grayscale image Pin
shefa' isied9-Apr-09 2:09
shefa' isied9-Apr-09 2:09 
GeneralRe: read grayscale image Pin
Dave Kreskowiak9-Apr-09 3:33
mveDave Kreskowiak9-Apr-09 3:33 
QuestionDuplicate Objects Pin
SeanTWard8-Apr-09 16:55
SeanTWard8-Apr-09 16:55 

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.