Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XP - Blocked file
Message
 
 
À
14/11/2008 03:16:41
Information générale
Forum:
Windows
Catégorie:
Sécurité
Divers
Thread ID:
01361699
Message ID:
01361986
Vues:
12
Hi Viv,

The DeleteFile() Win API will do
* VFP code
lcFileName = "C:\Temp\Whatever.exe"
lcStreamName = "Zone.Identifier:$DATA"
DECLARE Long DeleteFile IN WIN32API String FileName
IF DeleteFile(lcFileName + ":" + lcStreamName) = 0
  * Couldn't Unblock
  * Use GetLastError() and http://www.berezniker.com/content/pages/visual-foxpro/retrieving-windows-system-error-message to retrieve the error and error message
ENDIF
>That will work for me - but I'll probably need to also do this on client sites as well so I'm hoping to find a way of doing this via Windows API (looks like it might be in shdovw.dll?)
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform