Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XP - Blocked file
Message
 
 
General information
Forum:
Windows
Category:
Security
Miscellaneous
Thread ID:
01361699
Message ID:
01361986
Views:
11
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform