0

Guys, Have a look...

File.Delete("C:\\hi.txt");

This function is used for deleting a specific file right? But I m unable to delete it?
Is there my little mistake?

5
Contributors
13
Replies
16
Views
6 Years
Discussion Span
Last Post by Stefan_Lam88
0

If you're using Vista or W7 you may need to give your application administrator privileges to modify something in the root directory like that.

0

don't place files in your root directory try to create a separate folder for placing the files or place them in you project folder.. Or use any other directory instead

Edited by abelLazm: n/a

0

abelazm do u know how to give permission? to allow delete file...as I m stucked in giving permission to delete a file.

0

Place the file to be deleted in a folder. Give all users full control to that folder. This will solve the issue.

0

Sorry, I m newbie in asp.net..how to give full control to all users?who users are these?I try put ASPNET.But it doesnt work.

0

Erm , I m able to solve already. When I put the code above response.end();..
any 1 know why?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.