• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 759
  • Last Modified:

Delete files in PDA

hi,
How I can  delete a file with Kill("fileName") function in compact firmware application for WM5.0 PDA?
thanks
0
DODO
Asked:
DODO
  • 3
  • 3
1 Solution
 
Jaime OlivaresCommented:
Where is your file located?
You can use System.IO.File.Delete()
0
 
DODOAuthor Commented:
hi,
file location in storage card of the PDA as /SDMMC
ALREADY I TRIED My.Computer.FileSystem.DeleteFile but not accepted in compact dot net 2.0 firmwork
0
 
Jaime OlivaresCommented:
maybe you are not providing the correct file path.
0
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
DODOAuthor Commented:
Its not path problem , i got error in code when i am using it if the target machine is WM5.0 and the same code accepted if the target machine is PC .
So I  think some missing import names i must use or we can't use the same thing under compact dot net
frimwork.
0
 
Mikal613Commented:
System.IO.File.Delete("\Storage Card\Tepm\YourFile.txt")
0
 
Jaime OlivaresCommented:
>>System.IO.File.Delete("\Storage Card\Tepm\YourFile.txt")

that depends on programming language. In C# it would be:
System.IO.File.Delete(@"\Storage Card\Temp\YourFile.txt");
or
System.IO.File.Delete("\\Storage Card\\Temp\\YourFile.txt");

also there is a typo in Tepm folder ;)
0
 
DODOAuthor Commented:
Thanks to Mr . jaime & Mr. Mikal
My mistake that I was using :   My.Computer.FileSystem.DeleteFile()    instead of  
System.IO.File.Delete("\Storage Card\Tepm\YourFile.txt")
Best regards
dodo
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now