FileCopy App.Path & "\sapo.dll", App.Path & "\sapo.bmp"
Con ese codigo usted copiaria el archivo sapo.dll y a la copia
le daria el nombre sapo.bmb
Debe tener un poco de cuidado... ya que si su aplicacion se encuentra
en C:\ (por ejemplo), o en cualquier otra unidad (en la raiz de la unidad),
va a tener un error... Vea que pasaria:
FileCopy C:\\sapo.dll, C:\\sapo.bmp
Para solucionar ese pequeño posible error, haga algo como lo siguiente:
Dim strPath As String
strPath = App.Path
If Not Right(strPath, 1) = "\" Then strPath = strPath & "\"
FileCopy strPath & "sapo.dll", strPath & "sapo.bmp"
En cuanto a esto:
y este como seria para por ejemplo ubicar un archivo con el App.Path
App.Path & "\ArchivoAUbicar.Exe"
Si se refiere a saber si el archivo existe... pues, utilice el siguiente
codigo:
Private Sub Command1_Click()
Dim iExist As Integer, strPath As String
On Error GoTo Error_Handler
strPath = App.Path
If Not Right(strPath, 1) = "\" Then strPath = strPath & "\"
iExist = GetAttr(strPath & "ArchivoAUbicar.Exe")
MsgBox "El archivo si existe!", vbInformation
Exit Sub
Error_Handler:
If Err.Number = 53 Then
MsgBox "El archivo no existe.", vbCritical
Else
MsgBox Err.Description & " (" & Err.Number & ").", vbCritical
End If
End Sub