
15/11/2003, 14:13
|
 | | | Fecha de Ingreso: octubre-2003
Mensajes: 381
Antigüedad: 21 años, 5 meses Puntos: 0 | |
'Esto copia
Private Sub btnGuardar_Click()
Dim fs
'Hace una copia
Set fs = CreateObject("Scripting.FileSystemObject")
fs.copyfile App.Path & "\archivo.txt", App.Path & "\GGG" & Format(Date, "ddmmyy") & ".txt"
End Sub
'Esto renombra
Name App.Path & "\archivo.txt" As App.Path & "\GGG" & Format(Date, "ddmmyy") & ".txt"
APP.PATH devuelve el directorio del ejecutable, esté donde esté.
Puedes meter una ruta fija si quieres.
Saludos |