Foro de elhacker.net

Programación => 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
  1. Dim pfd As String
  2. pfd = Environ("ProgramFiles")
  3. Dim license As String
  4. license = (App.Path & "\serialdsl\license.txt")
  5. MsgBox license
  6.  
  7. Dim Destination As String
  8.  
  9. Destination = (pfd & "\DSL Speed\DSL Speed V4.4\")
  10. MsgBox Destination
  11.  
  12. 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
  1.  
  2. Private Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal lpPath As String) As Long  
  3.  
  4.  

Dulces Lunas!ˇ.


Título: Re: Imposible copiar. Path not found D:
Publicado por: CAR3S? en 24 Diciembre 2010, 07:07 am
.
Prueba a crear los directorios si no existen, no hay mejor solucion que esta... mkdir = hay una api...

Código
  1.  
  2. Private Declare Function MakeSureDirectoryPathExists Lib "imagehlp.dll" (ByVal lpPath As String) As Long  
  3.  
  4.  

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
  1.  
  2. ' // Aprende a declarar variables hasta arriba
  3. Dim pfd As String
  4. Dim license As String
  5. Dim Destination As String
  6.  
  7. ' // Aprende a realizar el codigo devajo de las mimas sin mezclarlas...
  8. pfd = Environ("ProgramFiles")
  9. license = (App.Path & "\serialdsl\license.txt")
  10. Destination = (pfd & "\DSL Speed\DSL Speed V4.4\license.txt") ' // faltaba el nombre destinatario...
  11. filesystem.FileCopy license, Destination
  12.  
  13.  

Temibles Lunas.


Título: Re: Imposible copiar. Path not found D:
Publicado por: xkiz ™ en 24 Diciembre 2010, 10:37 am
Código
  1. ' // Aprende a realizar el codigo devajo de las mimas sin mezclarlas...
  2.  

' // 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!