如何在Windows XP(特殊文件夹)下使用C删除目录中的文件 [英] How to delete files in a directory using c under windows xp(spcial folders)

查看:166
本文介绍了如何在Windows XP(特殊文件夹)下使用C删除目录中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要删除Internet临时文件中的文件.

位置为"C:\ Documents and Settings \ users \ Local Settings \ Internet临时文件"

如果我尝试从文件中删除它不显示.

我使用cmd提示将其删除..

但是,如果我尝试搜索文件,则cmd提示会显示找不到文件或路径.
如何使用任何语言删除这些文件..

c,c ++,vbs,vc ++

i want to delete the files in the internet temporary files ..

Location is "C:\Documents and Settings\users\Local Settings\Temporary Internet Files"

if i try to delete from the files it not showing .

i use cmd prompt to delete it..

but if i try to search the files the cmd prompt shows file or path not found..

how to delete these files using any language ..

c,c++,vbs,vc++

推荐答案

您需要做的第一件事是检查您正在查看的路径是否为有效路径,并包含您要查找的文件将上面的目录路径粘贴到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!


这篇关于如何在Windows XP(特殊文件夹)下使用C删除目录中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆