且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Windows XP(特殊文件夹)下使用C删除目录中的文件

更新时间:2023-09-30 08:47:16

您需要做的第一件事是检查您正在查看的路径是否为有效路径,并包含您要查找的文件将上面的目录路径粘贴到Windows资源管理器中,应确认;您可能还需要管理员权限才能访问它.检查完以上内容后,您应该能够在命令提示符下导航至该位置并测试是否可以删除文件.

顺便说一句,我刚刚检查了我的XP系统,并且C:\ Documents and Settings下面没有名为"users"的目录.
The first thing you need to do is check that the path you are looking at is a valid path and contains the files that you are interested in. Pasting the above directory path into Windows Explorer should confirm that; you may also need administrator privileges to access it. Once you have checked the above you should be able to navigate there in command prompt and test whether you can delete files or not.

BTW, I have just checked on my XP system and there is no directory named "users" below C:\Documents and Settings.


您好
您需要以特权较高的用户身份运行命令.
看看这篇关于ShellExecute函数的msdn文章,解决方案就发布在这里:

http://msdn.microsoft.com/zh-我们/library/windows/desktop/bb762153%28v=vs.85%29.aspx [
Hi
you need to run your command as a high elevated priviledge user.
look at this msdn article about ShellExecute function, solution is posted right there :

http://msdn.microsoft.com/en-us/library/windows/desktop/bb762153%28v=vs.85%29.aspx[^]

best regards!