|
-
Apr 8th, 2003, 04:38 PM
#1
Thread Starter
New Member
Automatic Patch for exe
Does anyone know of a simple method to patch multiple application exes installed on each workstion all connected to a server upon which I would like to simply copy the new exe to each workstation only when I have made a change to the source on the server when the user logs on...
I want to change the local exe (C:\windows\program files\appl.exe) with a new exe from the server... (o:\shared\sst\install\appl\appl.exe) when the server version exe is newer than the one on the hard drive of the users workstation.
Thanks,
Marc
-
Apr 8th, 2003, 04:53 PM
#2
Frenzied Member
1. Open notepad and type:
copy "\\ServerName\ShareName\sst\install\appl\appl.exe" "C:\Program Files\appl.exe"
2. Save as... "UpdateAppl.bat"
put it on floppy or place anywhere on the network or send as e-mail attachment to the user.
Ask them to close application first, then double-click on UpdateAppl.bat file.
-
Apr 8th, 2003, 04:55 PM
#3
Addicted Member
here:
VB Code:
Option Explicit
Const path1 = "c:\test.txt"
Const path2 = "c:\README FIRST.txt"
Private Sub Form_Load()
Dim file1 As String, file2 As String, ans As Integer
'*'*'*'get date and time for each file'*'*'*'
file1 = FileDateTime(path1) '' this will be the server one
file2 = FileDateTime(path2)
'*'*'*'start comparison'*'*'*'
If Format(file1, "yyyy") = Format(file2, "yyyy") Then
If Format(file1, "mm") = Format(file2, "mm") Then
If Format(file1, "dd") = Format(file2, "dd") Then
If Format(file1, "hh") = Format(file2, "hh") Then
If Format(file1, "min") = Format(file2, "min") Then
MsgBox "Same File"
Exit Sub
End If
End If
End If
End If
End If
MsgBox "Not Same - Update"
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|