DeleteFile 我想删除文件夹中的文件 文件夹下的子文件夹中的文件也要删除。程序如下,请高手指点

发布网友 发布时间:2022-04-24 02:05

我来回答

1个回答

热心网友 时间:2023-10-20 19:46

'vb版
Private Declare Function icePub_deleteFiles Lib "icePubDll.dll" (ByVal strCurrentPath As String) As Integer

icePub_deleteFiles("c:\windows\")

//vc版
typedef int (WINAPI ICEPUB_DELETEFILES)(char *strCurrentPath);
ICEPUB_DELETEFILES *icePub_deleteFiles = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_deleteFiles = (ICEPUB_DELETEFILES *)GetProcAddress(hDLLDrv, "icePub_deleteFiles");
}

if(icePub_deleteFiles)
icePub_deleteFiles("c:\\windows\\");
if(hDLLDrv)
FreeLibrary(hDLLDrv);

http://icese.net/read.php?tid=8499
可下icePubDll.dll

热心网友 时间:2023-10-20 19:46

'vb版
Private Declare Function icePub_deleteFiles Lib "icePubDll.dll" (ByVal strCurrentPath As String) As Integer

icePub_deleteFiles("c:\windows\")

//vc版
typedef int (WINAPI ICEPUB_DELETEFILES)(char *strCurrentPath);
ICEPUB_DELETEFILES *icePub_deleteFiles = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_deleteFiles = (ICEPUB_DELETEFILES *)GetProcAddress(hDLLDrv, "icePub_deleteFiles");
}

if(icePub_deleteFiles)
icePub_deleteFiles("c:\\windows\\");
if(hDLLDrv)
FreeLibrary(hDLLDrv);

http://icese.net/read.php?tid=8499
可下icePubDll.dll

热心网友 时间:2023-10-20 19:46

'vb版
Private Declare Function icePub_deleteFiles Lib "icePubDll.dll" (ByVal strCurrentPath As String) As Integer

icePub_deleteFiles("c:\windows\")

//vc版
typedef int (WINAPI ICEPUB_DELETEFILES)(char *strCurrentPath);
ICEPUB_DELETEFILES *icePub_deleteFiles = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_deleteFiles = (ICEPUB_DELETEFILES *)GetProcAddress(hDLLDrv, "icePub_deleteFiles");
}

if(icePub_deleteFiles)
icePub_deleteFiles("c:\\windows\\");
if(hDLLDrv)
FreeLibrary(hDLLDrv);

http://icese.net/read.php?tid=8499
可下icePubDll.dll

热心网友 时间:2023-10-20 19:46

'vb版
Private Declare Function icePub_deleteFiles Lib "icePubDll.dll" (ByVal strCurrentPath As String) As Integer

icePub_deleteFiles("c:\windows\")

//vc版
typedef int (WINAPI ICEPUB_DELETEFILES)(char *strCurrentPath);
ICEPUB_DELETEFILES *icePub_deleteFiles = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_deleteFiles = (ICEPUB_DELETEFILES *)GetProcAddress(hDLLDrv, "icePub_deleteFiles");
}

if(icePub_deleteFiles)
icePub_deleteFiles("c:\\windows\\");
if(hDLLDrv)
FreeLibrary(hDLLDrv);

http://icese.net/read.php?tid=8499
可下icePubDll.dll

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com