CopySelf
Copy itself to a location specified.
AI
Ringkasan AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Kode Sumber
'*needs to be compiled before it copies its self
Public Sub CopySelf(Path As String, NewName As String)
MyPath = App.Path & "\" & App.EXEName & ".EXE"
NewLocation = Path & "\" & NewName
On Error Resume Next
If LCase(MyPath) <> LCase(NewLocation) Then
FileCopy MyPath, NewLocation
End If
End Sub
Private Sub Form_Load()
Call CopySelf("C:\", "bleh.sys")
End Sub
Komentar Asli (3)
Dipulihkan dari Wayback Machine