Test Foro de elhacker.net SMF 2.1

Programación => .NET (C#, VB.NET, ASP) => Programación General => Programación Visual Basic => Mensaje iniciado por: CAR3S? en 24 Diciembre 2010, 04:35 AM

Título: Imposible copiar. Path not found D:
Publicado por: CAR3S? en 24 Diciembre 2010, 04:35 AM
como dice el titulo..

este es el codigo

Código (vb) [Seleccionar]
Dim pfd As String
pfd = Environ("ProgramFiles")
Dim license As String
license = (App.Path & "\serialdsl\license.txt")
MsgBox license

Dim Destination As String

Destination = (pfd & "\DSL Speed\DSL Speed V4.4\")
MsgBox Destination

FileCopy (license), (Destination)
Título: Re: Imposible copiar. Path not found D:
Publicado por: BlackZeroX en 24 Diciembre 2010, 06:51 AM
.
Prueba a crear los directorios si no existen, no hay mejor solucion que esta... mkdir = hay una api...

Código (vb) [Seleccionar]


Private Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal lpPath As String) As Long 



Dulces Lunas!¡.
Título: Re: Imposible copiar. Path not found D:
Publicado por: CAR3S? en 24 Diciembre 2010, 07:07 AM
Cita de: BlackZeroX▓▓▒▒░░ en 24 Diciembre 2010, 06:51 AM
.
Prueba a crear los directorios si no existen, no hay mejor solucion que esta... mkdir = hay una api...

Código (vb) [Seleccionar]


Private Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal lpPath As String) As Long 



Dulces Lunas!¡.

Existen  :silbar:
Título: Re: Imposible copiar. Path not found D:
Publicado por: BlackZeroX en 24 Diciembre 2010, 07:25 AM
.
Ya viste tu error?

Código (Vb,9,10) [Seleccionar]


' // Aprende a declarar variables hasta arriba
Dim pfd As String
Dim license As String
Dim Destination As String

' // Aprende a realizar el codigo devajo de las mimas sin mezclarlas...
pfd = Environ("ProgramFiles")
license = (App.Path & "\serialdsl\license.txt")
Destination = (pfd & "\DSL Speed\DSL Speed V4.4\license.txt") ' // faltaba el nombre destinatario...
filesystem.FileCopy license, Destination



Temibles Lunas.
Título: Re: Imposible copiar. Path not found D:
Publicado por: xkiz ™ en 24 Diciembre 2010, 10:37 AM
Cita de: BlackZeroX▓▓▒▒░░ en 24 Diciembre 2010, 07:25 AM
Código (Vb,9,10) [Seleccionar]

' // Aprende a realizar el codigo devajo de las mimas sin mezclarlas...


' // Aprende, devajo se escribe debajo
Título: Re: Imposible copiar. Path not found D:
Publicado por: CAR3S? en 24 Diciembre 2010, 12:34 PM
Gracias , ya lo solucione, blabk, se q me odias... te conozco :$  :-[  :rolleyes: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :laugh: :silbar: :silbar: :silbar:


Suerte!