Solved

Delete files in PDA

Posted on 2008-06-20
7
647 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

12 Experts available now in Live!

Get 1:1 Help Now