Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XP - Blocked file
Message
De
15/11/2008 05:05:49
 
 
Information générale
Forum:
Windows
Catégorie:
Sécurité
Divers
Thread ID:
01361699
Message ID:
01362061
Vues:
8
Hi,

Thanks. I guess it couldn't be simpler than that !
Now I'm intrigued by the other possiblilities. It would be interesting to create my own alternate streams - but that's for a .NET application

Best,
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?)
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform