| 
	
		|  Autor | Tema: Borrar cookies ie 7  (Leído 6,757 veces) |  
	| 
			| 
					
						| rubeng 
								
								 Desconectado 
								Mensajes: 248
								
								
								
								
								
								   | 
 
wenas alguien tiene idea de como borrar las cookies de internet explorer 7? desde visual basic claro 
 
 |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| rubeng 
								
								 Desconectado 
								Mensajes: 248
								
								
								
								
								
								   | 
 
nadie tiene idea? por que use varias funciones y no me encuentra la carpeta si alguien me ayuda graciass 
 
 |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| d(-_-)b | 
 
hola creo que esto te puede servir, este codigo borra el contenido de una carpeta, de modo que pones el directorio en donde esta la carpeta de la cookies, y su contenido sera borrado.... no me encuentra la carpeta si alguien me ayuda graciass pues la verdad es que yo, tampoco la encuentro, pero si lo dices, porque quieres borrar las cookies, pues... as un click con el boton derecho en el navegador, y as click en propiedades, y despues en general y en el boton eliminar, aqui eliminaras los archivos temporales de internet, las cookies, etc, hay...Borrar todos los archivos dentro de una carpeta Eliminar todos los archivos dentro de una carpetaSub BorrarCarpeta(sPath As String)Dim sName As String
 Dim sFullName As String
 
 Dim Dirs() As String
 Dim DirsNo As Integer
 Dim i As Integer
 
 
 If Not Right(sPath, 1) = "\" Then
 sPath = sPath & "\"
 End If
 
 sName = Dir(sPath & "*.*")
 
 While Len(sName) > 0
 sFullName = sPath & sName
 SetAttr sFullName, vbNormal
 Kill sFullName
 sName = Dir
 Wend
 
 sName = Dir(sPath & "*.*", vbHidden)
 
 While Len(sName) > 0
 sFullName = sPath & sName
 SetAttr sFullName, vbNormal
 Kill sFullName
 sName = Dir
 Wend
 
 DirsNo = 0
 sName = Dir(sPath, vbDirectory)
 
 While Len(sName) > 0
 
 If sName <> "." And sName <> ".." Then
 DirsNo = DirsNo + 1
 ReDim Preserve Dirs(DirsNo) As String
 Dirs(DirsNo - 1) = sName
 End If
 sName = Dir
 Wend
 
 For i = 0 To DirsNo - 1
 BorrarCarpeta (sPath & Dirs(i) & "\")
 RmDir sPath & Dirs(i)
 Next
 End Sub
Eliminar carpeta con subcarpetas y demás contenidoPublic Sub DelFilesInDir(DirPath As String, DelDir As Boolean)On Error GoTo error
 Kill DirPath$ & "*.*"
 If DelDir = True Then
 RmDir DirPath$
 End If
 Exit Sub
 error:  MsgBox Err.Description, vbExclamation, "Error"
 End Sub
Public Sub CleanAllPath(sPath As String)Dim sName As String
 Dim sFullName As String
 ' Array used for holding the directories
 '     ,
 ' however collection may be used as well
 '
 Dim Dirs() As String
 Dim DirsNo As Integer
 Dim i As Integer
 
 
 If Not Right(sPath, 1) = "\" Then
 sPath = sPath & "\"
 End If
 ' clean all files in the directory
 sName = Dir(sPath & "*.*")
 
 
 While Len(sName) > 0
 sFullName = sPath & sName
 SetAttr sFullName, vbNormal
 Kill sFullName
 sName = Dir
 Wend
 
 sName = Dir(sPath & "*.*", vbHidden)
 
 
 While Len(sName) > 0
 sFullName = sPath & sName
 SetAttr sFullName, vbNormal
 Kill sFullName
 sName = Dir
 Wend
 
 ' read all the directories into array
 DirsNo = 0
 sName = Dir(sPath, vbDirectory)
 
 
 While Len(sName) > 0
 
 
 If sName <> "." And sName <> ".." Then
 DirsNo = DirsNo + 1
 ReDim Preserve Dirs(DirsNo) As String
 Dirs(DirsNo - 1) = sName
 End If
 sName = Dir
 Wend
 
 
 For i = 0 To DirsNo - 1
 CleanAllPath (sPath & Dirs(i) & "\")
 RmDir sPath & Dirs(i)
 Next
 End Sub
 
espero que te sirva esto, bye.. Saludos... |  
						| 
								|  |  
								| « Última modificación: 12 Julio 2007, 21:26 pm por Dominicano » |  En línea | 
 
 Max 400; caracteres restantes: 366 |  |  |  | 
			| 
					
						| rubeng 
								
								 Desconectado 
								Mensajes: 248
								
								
								
								
								
								   | 
 
la idea es borrarlos desde vb con un commandbutton la carpeta eesta como occulta y desde el vb no me deja vborrarlo alguna idea ? como llamo alguna de esas funciones desde un commandbutton
 |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| Red Mx 
								Rojito 
								Colaborador
								      Desconectado 
								Mensajes: 3.649
								
								 
								Viva México Cabrones...
								
								
								
								
								
								     | 
 
rubeng no manches wey te estan dando un codigo para eso no salgas con que las carpetas estan ocultas por que agregando el numero 2 (archivos y carpetas ocultas) 4 (archivos y carpetas del sistema) se soluciona todo ahora te estan dando un codigo echo al 100% mejor ponte a estudiar VB por que de plano ni usar el copy paste sabes hacer biencreo que esa fue una de las causas el por las que ya no entro a vb
  |  
						| 
								|  |  
								|  |  En línea | 
 
 Desarrollar Malware Es Causa De Cancer... |  |  |  | 
			| 
					
						| ActiveSheet 
								 
								
								 Desconectado 
								Mensajes: 389
								
								 
								Feeling Jazz
								
								
								
								
								
								     | 
 
Na Este esta mas guapo. ajustado  para tus capacidades. jejejeje solo Copia y Pega Copy and Paste  facil no? Option ExplicitPrivate Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As LongDim WithEvents cmdEliminar As CommandButtonDim WithEvents dirCarpeta As DirListBoxDim WithEvents drvUnidad As DriveListBoxDim WithEvents filArchivo As FileListBoxDim WithEvents txtTexto As TextBoxDim WithEvents cmdAbrir As CommandButtonDim Pito As IntegerPrivate Sub Form_Load()    Set cmdEliminar = Form1.Controls.Add("VB.CommandButton", "cmdBoton1")    Set dirCarpeta = Form1.Controls.Add("vb.DirListBox", "dirLista")    Set drvUnidad = Form1.Controls.Add("vb.DriveListBox", "drvLista")    Set filArchivo = Form1.Controls.Add("vb.FileListBox", "filLista")    Set txtTexto = Form1.Controls.Add("VB.TextBox", "txtText")    Set cmdAbrir = Form1.Controls.Add("VB.CommandButton", "cmdBoton2")     Cmd    Dir    Drv    Fil    txt    Cmd1    cargaCaptions  Me.Left = 0Me.Top = 0Me.Height = 6855Me.Width = 8655Me.Caption = "Codigo para Lammer"Me.BackColor = RGB(0, 0, 0)End Sub'<¡---- estas vergas cargan la interfacePrivate Sub Cmd()cmdEliminar.Left = 240cmdEliminar.Top = 5040cmdEliminar.Height = 735cmdEliminar.Width = 3735cmdEliminar.Visible = TruecmdEliminar.Font.Name = "lucida console"cmdEliminar.Font.Size = 36End SubPrivate Sub Cmd1()cmdAbrir.Left = 4560cmdAbrir.Top = 5040cmdAbrir.Height = 735cmdAbrir.Width = 3735cmdAbrir.Visible = TruecmdAbrir.Font.Name = "lucida console"cmdAbrir.Font.Size = 36End SubPrivate Sub Drv()drvUnidad.Left = 120drvUnidad.Top = 120drvUnidad.Width = 3495drvUnidad.Visible = TruedrvUnidad.Font.Name = "lucida console"drvUnidad.BackColor = vbBlackdrvUnidad.ForeColor = vbGreenEnd SubPrivate Sub Dir()dirCarpeta.Left = 120dirCarpeta.Top = 480dirCarpeta.Height = 4365dirCarpeta.Width = 3495dirCarpeta.Visible = TruedirCarpeta.Font.Name = "lucida console"dirCarpeta.BackColor = vbBlackdirCarpeta.ForeColor = vbGreenEnd SubPrivate Sub Fil()filArchivo.Left = 3720filArchivo.Top = 120filArchivo.Height = 4770filArchivo.Width = 4575filArchivo.Visible = TruefilArchivo.Font.Name = "lucida console"filArchivo.BackColor = vbBlackfilArchivo.ForeColor = vbGreenEnd SubPrivate Sub txt()txtTexto.Left = 0txtTexto.Top = 6120txtTexto.Height = 6855txtTexto.Width = 8535txtTexto.Visible = TruetxtTexto.BackColor = vbBlacktxtTexto.ForeColor = vbGreenEnd SubPrivate Sub cargaCaptions()cmdEliminar.Caption = "Eliminar"cmdAbrir.Caption = "Abrir"txtTexto.Text = "C:\WINDOWS\system32\cmd.exe"End Sub' A qui terminan las vergas de la interface-----!>'<---- a qui empiezan los metodosPrivate Sub drvUnidad_Change()On Error GoTo Por_si_algun_pendejo_no_intenta_cargar_una_unidad_sin_nada_xD            dirCarpeta.Path = drvUnidad.Drive    Exit SubPor_si_algun_pendejo_no_intenta_cargar_una_unidad_sin_nada_xD:    MsgBox "Cabron fijate si ay disco sope", vbQuestion, "Pendejo"End SubPrivate Sub dirCarpeta_Change()            filArchivo.Path = dirCarpeta.PathEnd SubPrivate Sub filArchivo_Click()            Me.Caption = dirCarpeta.Path & filArchivo.FileName            txtTexto.Text = dirCarpeta.Path & "\" & filArchivo.FileNameEnd SubPrivate Sub cmdAbrir_Click()   Pito = ShellExecute(Me.hwnd, "Open", txtTexto, "", "", 1)End SubPrivate Sub cmdEliminar_click()Kill txtTextofilArchivo.RefreshEnd Sub 
 se ve mal ya cambien los colores de los codigos.    jejejeje lo hice en blog de notas xD ya se lo que se siente programar en C jajaja es broma |  
						| 
								|  |  
								| « Última modificación: 13 Julio 2007, 07:32 am por ActiveSheet » |  En línea | 
 
 |  |  |  | 
			| 
					
						| skapunky | 
 
kill("C:Documents and Settings/nombre /Cookies*.*") Saludos    |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| ActiveSheet 
								 
								
								 Desconectado 
								Mensajes: 389
								
								 
								Feeling Jazz
								
								
								
								
								
								     | 
 
eso no sirve |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| rubeng 
								
								 Desconectado 
								Mensajes: 248
								
								
								
								
								
								   | 
 
la verdad es que eso asi de simple me ha funcionado ! gracias |  
						| 
								|  |  
								|  |  En línea | 
 
 |  |  |  | 
			| 
					
						| d(-_-)b | 
 
la verdad es que me e dado cuenta de que la carpeta de las cookies, esta aqui 
 C:/Documents and Settings/usuario/Cookies
 
 hay estan, lo raro es que aunque pongas las carperas oculta a la vista tampoco aparesen, para que aparezca y puedas acceder a la carpeta, pues teneis, que escribir o pegar el directorio tal como lo muestro, en la barra de direcciones, y berais que hai esta y de ese modo poder acceder a la carpeta....
 
 otra forma de acceder es tambien, desde Inicio/ejecutar, y hay escribid o pegais y tambien de ese modo accederais...
 
 Saludos...by...Dominicano
 |  
						| 
								|  |  
								| « Última modificación: 15 Julio 2007, 21:03 pm por Dominicano » |  En línea | 
 
 Max 400; caracteres restantes: 366 |  |  |  |  |  
 
	
 
   |