Solved

Delete files in PDA

Posted on 2008-06-20
7
665 Views
Last Modified: 2013-12-05
hi,
How I can  delete a file with Kill("fileName") function in compact firmware application for WM5.0 PDA?
thanks
0
Comment
Question by:DODO
  • 3
  • 3
7 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 21838191
Where is your file located?
You can use System.IO.File.Delete()
0
 

Author Comment

by:DODO
ID: 21842381
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
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 21842505
maybe you are not providing the correct file path.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:DODO
ID: 21846976
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
 
LVL 48

Expert Comment

by:Mikal613
ID: 21854665
System.IO.File.Delete("\Storage Card\Tepm\YourFile.txt")
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 125 total points
ID: 21860219
>>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
 

Author Comment

by:DODO
ID: 21875693
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

The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now