|
Trouver une ressource
Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !
Sujet : COOKIE [ Archives Visual Basic / Fichier / Disque ] (kalif)
Informations & options pour cette discussion
vendredi 3 mai 2002 à 16:12:46 |
COOKIE

kalif
|
comment supprimer tout un ou plusieur cookie qui se trouve dans C:\WINDOWS\Temporary Internet Files ????
|
|
|
vendredi 3 mai 2002 à 17:08:28 |
Re : COOKIE

ynizon
|
Pour chopper le repertoire, tu fais:
REP=GET_DossierSpecial(32) et puis, tu delete tes fichiers avec des collections de dossier et de fichiers avec un filesystemobject par exemple. Set colFolders = REP.SubFolders For Each objFolder In colFolders Set colFiles = objFolder.Files For Each objFile In colFiles if fichier alors delete next next
Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long Private Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" _ (ByVal pidl As Long, ByVal pszPath As String) As Long Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" _ (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
Public Function GET_DossierSpecial(CSIDL As Long) As String Dim Formhwnd As Long Formhwnd = 0 Dim r As Long Dim sPath As String Dim IDL As ITEMIDLIST Const NOERROR = 0 Const MAX_LENGTH = 260 'fill the idl structure with the specified folder item r = SHGetSpecialFolderLocation(Formhwnd, CSIDL, IDL) If r = NOERROR Then 'Of the structure is filled, initialize and 'retrieve the path from the id list, and return 'the folder with a trailing slash appended. sPath = Space$(MAX_LENGTH) r = SHGetPathFromIDList(ByVal IDL.mkid.cb, ByVal sPath) If r Then GET_DossierSpecial = Left$(sPath, _ InStr(sPath, Chr$(0)) - 1) & "\" End If End If End Function
------------------------------- Réponse au message : -------------------------------
comment supprimer tout un ou plusieur cookie qui se trouve dans C:\WINDOWS\Temporary Internet Files ????
|
|
|
samedi 4 mai 2002 à 19:02:44 |
Re : COOKIE

kalif
|
il me met: Type défini par l'utilisateur non défini a
Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
------------------------------- Réponse au message : -------------------------------
Pour chopper le repertoire, tu fais:
REP=GET_DossierSpecial(32) et puis, tu delete tes fichiers avec des collections de dossier et de fichiers avec un filesystemobject par exemple. Set colFolders = REP.SubFolders For Each objFolder In colFolders Set colFiles = objFolder.Files For Each objFile In colFiles if fichier alors delete next next
Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long Private Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" _ (ByVal pidl As Long, ByVal pszPath As String) As Long Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" _ (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
Public Function GET_DossierSpecial(CSIDL As Long) As String Dim Formhwnd As Long Formhwnd = 0 Dim r As Long Dim sPath As String Dim IDL As ITEMIDLIST Const NOERROR = 0 Const MAX_LENGTH = 260 'fill the idl structure with the specified folder item r = SHGetSpecialFolderLocation(Formhwnd, CSIDL, IDL) If r = NOERROR Then 'Of the structure is filled, initialize and 'retrieve the path from the id list, and return 'the folder with a trailing slash appended. sPath = Space$(MAX_LENGTH) r = SHGetPathFromIDList(ByVal IDL.mkid.cb, ByVal sPath) If r Then GET_DossierSpecial = Left$(sPath, _ InStr(sPath, Chr$(0)) - 1) & "\" End If End If End Function
------------------------------- Réponse au message : -------------------------------
comment supprimer tout un ou plusieur cookie qui se trouve dans C:\WINDOWS\Temporary Internet Files ????
|
|
|
mardi 14 mai 2002 à 09:06:25 |
Re : COOKIE

ynizon
|
Oui, désolé jai oublié cette partie. Public type SHITEMID cb as long abID as byte end type
Public type ITEMIDLIST mkid as SHITEMID end type
------------------------------- Réponse au message : -------------------------------
il me met: Type défini par l'utilisateur non défini a
Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
------------------------------- Réponse au message : -------------------------------
Pour chopper le repertoire, tu fais:
REP=GET_DossierSpecial(32) et puis, tu delete tes fichiers avec des collections de dossier et de fichiers avec un filesystemobject par exemple. Set colFolders = REP.SubFolders For Each objFolder In colFolders Set colFiles = objFolder.Files For Each objFile In colFiles if fichier alors delete next next
Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long Private Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" _ (ByVal pidl As Long, ByVal pszPath As String) As Long Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" _ (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
Public Function GET_DossierSpecial(CSIDL As Long) As String Dim Formhwnd As Long Formhwnd = 0 Dim r As Long Dim sPath As String Dim IDL As ITEMIDLIST Const NOERROR = 0 Const MAX_LENGTH = 260 'fill the idl structure with the specified folder item r = SHGetSpecialFolderLocation(Formhwnd, CSIDL, IDL) If r = NOERROR Then 'Of the structure is filled, initialize and 'retrieve the path from the id list, and return 'the folder with a trailing slash appended. sPath = Space$(MAX_LENGTH) r = SHGetPathFromIDList(ByVal IDL.mkid.cb, ByVal sPath) If r Then GET_DossierSpecial = Left$(sPath, _ InStr(sPath, Chr$(0)) - 1) & "\" End If End If End Function
------------------------------- Réponse au message : -------------------------------
comment supprimer tout un ou plusieur cookie qui se trouve dans C:\WINDOWS\Temporary Internet Files ????
|
|
|
mardi 14 mai 2002 à 14:52:11 |
Re : COOKIE

kalif
|
un objet est requis
a partir de:
Set colFolders = REP.SubFolders For Each objFolder In colFolders Set colFiles = objFolder.Files For Each objFile In colFiles 'if fichier alors delete Next Next
------------------------------- Réponse au message : -------------------------------
Oui, désolé jai oublié cette partie. Public type SHITEMID cb as long abID as byte end type
Public type ITEMIDLIST mkid as SHITEMID end type
------------------------------- Réponse au message : -------------------------------
il me met: Type défini par l'utilisateur non défini a
Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
------------------------------- Réponse au message : -------------------------------
Pour chopper le repertoire, tu fais:
REP=GET_DossierSpecial(32) et puis, tu delete tes fichiers avec des collections de dossier et de fichiers avec un filesystemobject par exemple. Set colFolders = REP.SubFolders For Each objFolder In colFolders Set colFiles = objFolder.Files For Each objFile In colFiles if fichier alors delete next next
Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long Private Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" _ (ByVal pidl As Long, ByVal pszPath As String) As Long Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" _ (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
Public Function GET_DossierSpecial(CSIDL As Long) As String Dim Formhwnd As Long Formhwnd = 0 Dim r As Long Dim sPath As String Dim IDL As ITEMIDLIST Const NOERROR = 0 Const MAX_LENGTH = 260 'fill the idl structure with the specified folder item r = SHGetSpecialFolderLocation(Formhwnd, CSIDL, IDL) If r = NOERROR Then 'Of the structure is filled, initialize and 'retrieve the path from the id list, and return 'the folder with a trailing slash appended. sPath = Space$(MAX_LENGTH) r = SHGetPathFromIDList(ByVal IDL.mkid.cb, ByVal sPath) If r Then GET_DossierSpecial = Left$(sPath, _ InStr(sPath, Chr$(0)) - 1) & "\" End If End If End Function
------------------------------- Réponse au message : -------------------------------
comment supprimer tout un ou plusieur cookie qui se trouve dans C:\WINDOWS\Temporary Internet Files ????
|
|
|
mercredi 22 mai 2002 à 18:23:18 |
Re : COOKIE

tohcas
|
Est-ce que la commande "SHELL("del c:\windows\Temporary Internet File\*.txt") ne serait pas plus appropriée ?
Orion
------------------------------- Réponse au message : -------------------------------
un objet est requis
a partir de:
Set colFolders = REP.SubFolders For Each objFolder In colFolders Set colFiles = objFolder.Files For Each objFile In colFiles 'if fichier alors delete Next Next
------------------------------- Réponse au message : -------------------------------
Oui, désolé jai oublié cette partie. Public type SHITEMID cb as long abID as byte end type
Public type ITEMIDLIST mkid as SHITEMID end type
------------------------------- Réponse au message : -------------------------------
il me met: Type défini par l'utilisateur non défini a
Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
------------------------------- Réponse au message : -------------------------------
Pour chopper le repertoire, tu fais:
REP=GET_DossierSpecial(32) et puis, tu delete tes fichiers avec des collections de dossier et de fichiers avec un filesystemobject par exemple. Set colFolders = REP.SubFolders For Each objFolder In colFolders Set colFiles = objFolder.Files For Each objFile In colFiles if fichier alors delete next next
Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long Private Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" _ (ByVal pidl As Long, ByVal pszPath As String) As Long Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" _ (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
Public Function GET_DossierSpecial(CSIDL As Long) As String Dim Formhwnd As Long Formhwnd = 0 Dim r As Long Dim sPath As String Dim IDL As ITEMIDLIST Const NOERROR = 0 Const MAX_LENGTH = 260 'fill the idl structure with the specified folder item r = SHGetSpecialFolderLocation(Formhwnd, CSIDL, IDL) If r = NOERROR Then 'Of the structure is filled, initialize and 'retrieve the path from the id list, and return 'the folder with a trailing slash appended. sPath = Space$(MAX_LENGTH) r = SHGetPathFromIDList(ByVal IDL.mkid.cb, ByVal sPath) If r Then GET_DossierSpecial = Left$(sPath, _ InStr(sPath, Chr$(0)) - 1) & "\" End If End If End Function
------------------------------- Réponse au message : -------------------------------
comment supprimer tout un ou plusieur cookie qui se trouve dans C:\WINDOWS\Temporary Internet Files ????
|
|
|
jeudi 23 mai 2002 à 09:42:01 |
Re : COOKIE

ynizon
|
Mais bien sur, t es un petit malin toi ! Si j ai ecris des API pour chopper le repertoire , c est parceque le repertoire peut changer dun ordi a lautre, avec ta commande, ca planterai les ordis en version anglaise par exemple .... Avec la mienne, ca fonctionnera tout le temps.
------------------------------- Réponse au message : -------------------------------
Est-ce que la commande "SHELL("del c:\windows\Temporary Internet File\*.txt") ne serait pas plus appropriée ?
Orion
------------------------------- Réponse au message : -------------------------------
un objet est requis
a partir de:
Set colFolders = REP.SubFolders For Each objFolder In colFolders Set colFiles = objFolder.Files For Each objFile In colFiles 'if fichier alors delete Next Next
------------------------------- Réponse au message : -------------------------------
Oui, désolé jai oublié cette partie. Public type SHITEMID cb as long abID as byte end type
Public type ITEMIDLIST mkid as SHITEMID end type
------------------------------- Réponse au message : -------------------------------
il me met: Type défini par l'utilisateur non défini a
Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
------------------------------- Réponse au message : -------------------------------
Pour chopper le repertoire, tu fais:
REP=GET_DossierSpecial(32) et puis, tu delete tes fichiers avec des collections de dossier et de fichiers avec un filesystemobject par exemple. Set colFolders = REP.SubFolders For Each objFolder In colFolders Set colFiles = objFolder.Files For Each objFile In colFiles if fichier alors delete next next
Private Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long Private Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" _ (ByVal pidl As Long, ByVal pszPath As String) As Long Private Declare Function SHGetSpecialFolderLocation Lib "shell32.dll" _ (ByVal hwndOwner As Long, ByVal nFolder As Long, pidl As ITEMIDLIST) As Long
Public Function GET_DossierSpecial(CSIDL As Long) As String Dim Formhwnd As Long Formhwnd = 0 Dim r As Long Dim sPath As String Dim IDL As ITEMIDLIST Const NOERROR = 0 Const MAX_LENGTH = 260 'fill the idl structure with the specified folder item r = SHGetSpecialFolderLocation(Formhwnd, CSIDL, IDL) If r = NOERROR Then 'Of the structure is filled, initialize and 'retrieve the path from the id list, and return 'the folder with a trailing slash appended. sPath = Space$(MAX_LENGTH) r = SHGetPathFromIDList(ByVal IDL.mkid.cb, ByVal sPath) If r Then GET_DossierSpecial = Left$(sPath, _ InStr(sPath, Chr$(0)) - 1) & "\" End If End If End Function
------------------------------- Réponse au message : -------------------------------
comment supprimer tout un ou plusieur cookie qui se trouve dans C:\WINDOWS\Temporary Internet Files ????
|
|
|
Cette discussion est classé dans : cookie
Répondre à ce message
Sujets en rapport avec ce message
Un virus déguisé en cookie,que faire? [ par Marc ]
Salut,J´ai une saloperie qui a infecté ma machine; c´est la pub de Madoogali´s Advertising;qui s´installe sur l´écran avantl´Explorer Pour le tirer,én
EXTRAIRE UN COOKIE D'UN SITE [ par blade.pop ]
Voila je voudrai savoir comment extraire un cookie de caramail a partir du compte et du passCeux qui savent aidez moi plz
comment creer [cookie,page asp,objet] [ par ben ]
bonjour-je voudrais creer un cookie a partir d'un application dhtml que j'ai cree avec vb6 edit professionnelle.-comment creer une page asp avec une a
Recuperer une valeur dans un cookie [ par devilo ]
Slt tt le monde!J'aurais besoin d'une infos, comment peut-on recuperer une valeur dans un cookie pour mon appli???Merci!!!
ACCEPT COOKIE AVEC WINSCK [ par bladepop ]
voila j'ai un ptit probleme enfait j'envoi des donnée a un site via winsock et il me repond qu'il faut que mon naviguateur accepte les cookie et donc
new test de securité [ par Warning ]
Mail:ASC.Warning@caramail.comWarning
Installer un Cookie [ par 3000fr ]
BonjourJ'ai un FORUM et un TOPSITE en ASP... et je cherche à mettre un cookie pour limiter les votes (trichés)dans le topsiteJ'ai déjà une verificatio
Interraction entre IE et VB [ par kartilana ]
Bonjour à tous,je viens de créer un petit programme trés simple qui m'affiche uniquement une page que je souhaite. Cette page engendre la création d'u
Cookie flash et vb [ par shayane ]
Pour les besoins d'inter agir avec flash, je souhaite récupérer un cookie que flash balance dans un répertoire du style c:/OS/Profiles/nom user/Donnée
Probleme de sessions / cookies stockées [ par jdaviaud ]
J'ai un petit soucis, j'utilise un Inet pour récupérer une page de E-Gold.com ( equivalent de paypal ) et je m'en sers pour faire un payment automatiq
Livres en rapport
|
Téléchargements
Logiciels à télécharger sur le même thème :
Comparez les prix Nouvelle version
|