Set File to ReadOnly

J

Joe Hanna

This might seem like a silly question, but ...

I want to put my the CF redist CAB and my CF application CAB on the Storage card of an Intermec 700 so it can be re-installed if necessary. When you run the CAB from File Explorer, it is deleted upon completion.

How do you set a CAB file to ReadOnly on a Pocket PC so it does not get deleted (I already tried setting it to Read Only on the PC before copying it across the network - No Activesync involved)?

Thanks,
Joe
 
É

éric

setting it to read-only on the desktop should do it...

to do it on device you can use code: System.IO.FileInfo

Here I set my file to ReadOnly
------------------------------------

try
{
System.IO.FileInfo fi = new System.IO.FileInfo("\\path\\file.cab");
fi.Attributes = System.IO.FileAttributes.ReadOnly;
}
catch{}
--------------------------------------
Regards,

éric
This might seem like a silly question, but ...

I want to put my the CF redist CAB and my CF application CAB on the Storage
card of an Intermec 700 so it can be re-installed if necessary. When you
run the CAB from File Explorer, it is deleted upon completion.

How do you set a CAB file to ReadOnly on a Pocket PC so it does not get
deleted (I already tried setting it to Read Only on the PC before copying it
across the network - No Activesync involved)?

Thanks,
Joe
 
É

éric

Not with the built in explorer... there are some third party explorer which
will allow you to do it.

Regards,

éric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top