Link to home
Start Free TrialLog in
Avatar of DODO
DODOFlag for Kuwait

asked on

Delete files in PDA

hi,
How I can  delete a file with Kill("fileName") function in compact firmware application for WM5.0 PDA?
thanks
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Where is your file located?
You can use System.IO.File.Delete()
Avatar of DODO

ASKER

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
maybe you are not providing the correct file path.
Avatar of DODO

ASKER

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.
Avatar of Mikal613
System.IO.File.Delete("\Storage Card\Tepm\YourFile.txt")
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DODO

ASKER

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