Solved

Delete files in PDA

Posted on 2008-06-20
7
679 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
REXEX help Part 2 2 25
How come this regular expression allows "e"? 14 38
Convert datetime to time string 10 21
Password manager for small company 3 14
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

777 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