Sunday, June 10, 2007

ceAttrib added to the Command-Line Srego Toolpack

With version 3.0.0.5 of the Srego CE Toolpack Command-Line utilities, a new utility called ceAttrib has been added.

ceAttrib

The ceAttrib utility is run on a desktop computer to set file attributes on the connected device.

The ceAttrib utility will accept wildcards in the path name (* and ?) to get or set file attributes on more than one file.

There are 4 attributes the ceAttrib utility can be used to change: ReadOnly, Archive, Hidden, and System.

The ceAttrib utility can also be used to see what attributes are set on a file. It will show ReadOnly, Archive, Hidden, System, and Directory.

The ceAttrib utility will use the current directory (set by ceCD) and does require quotes around paths with spaces.

*** Note: Some attributes cannot be changed on certain platforms. For example, the System attribute cannot be changed on a Windows Mobile 5.0 or Windows Mobile 6 device.


Usage:

ceAttrib - version 03.00.00.05
(c) Srego, Inc - 2007

Usage: ceAttrib [path] [/?] [+R -R] [+A -A] [+S -S] [+H -H]

[path] Specifies file(s) to touch. Wildcards are permitted.

[/?] Display usage.

[+R] Set Read-Only Attribute
[-R] Clear Read-Only Attribute

[+A] Set Archive Attribute
[-A] Clear Archive Attribute

[+S] Set System Attribute
[-S] Clear System Attribute

[+H] Set Hidden Attribute
[-H] Clear Hidden Attribute

Examples:

To show the file attribute for a single file:

ceAttrib gps.log

ceAttrib - version 03.00.00.05
(c) Srego, Inc - 2007

Current Device Directory: \My Documents

A \My Documents\gps.log

Files: 1

To show more than one file’s attributes, you can use wildcards:

ceAttrib *.*

ceAttrib - version 03.00.00.05
(c) Srego, Inc - 2007

Current Device Directory: \My Documents

A \My Documents\gps.log
RA \My Documents\PGTViewer_WinMobile_7004.CAB
A \My Documents\MadisonCty.gtx

Files: 3


To add the Read Only attribute to a file:

ceAttrib gps.log +R

ceAttrib - version 03.00.00.05
(c) Srego, Inc - 2007

Current Device Directory: \My Documents

RA \My Documents\gps.log

Files Updated: 1



To remove the Read Only attribute to a file:

ceAttrib gps.log -R

ceAttrib - version 03.00.00.05
(c) Srego, Inc - 2007

Current Device Directory: \My Documents

A \My Documents\gps.log

Files Updated: 1

No comments: