CopySelf
Copy itself to a location specified.
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.
सोर्स कोड
'*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
मूल टिप्पणियाँ (3)
Wayback Machine से पुनर्प्राप्त