FORUMS
Remove All Ads from XDA

[APP] xcopyce - 0v04 [08 SEP 2008]

8,771 posts
Thanks Meter: 468
 
By DaveShaw, Senior Moderator Emeritus + Wiki Bureaucrat on 18th August 2008, 04:59 PM
Post Reply Email Thread
Hi
This app was created a few months ago and lived in the UC thread created by Sleuth255. I said if there was enough interest I would move the post to the it's own thread. I got to 0v03, so I started a new thread.

xcopyce v0-04
This is an application idea l3v5y came up with and somehow convinced me into writing .

Purpose
To copy folders as part of the UC process.

Requirements
* .Net CF 2.0
* UC (Of course).

Usage
*Download the Zip file and extract xcopyce.exe onto your the root of your storage card.
*Add the following lines to your UC File
Code:
CPY1:\Storage Card\xcopyce.exe
CPY2:\Temp\xcopyce.exe
EXEC:\Temp\xcopyce.exe
Replace folder paths where necessary, remeber that EXEC: does not support spaces (hence why I'm copying to \Temp).

Config
Create a file on the root of your storage card called xcopyce.txt - this is the config file.
*The format of the file is "source" "destination" attribs.
*Comments begin with a # symbol.
*By default destination files are created without attributes.
*File attributes are as follows (case insensitive):
Code:
r - read-only
a - archive
s - system
h - hidden
Example:
Code:
#Copy Temp from Storage Card to your Device
"\Storage Card\Temp" \Temp
#Copy Folder making all files Read only in the Destination
\Temp "\Temp2" r
#Copy Folder making all files Hidden and System in the Destination
\Temp2 \Temp3 sh
#Copy Folder making all files System, hidden, read-only and archive in the Destination
\Temp3 \Temp4 shra
Double Quotes can surround either the source or destination, but must surround paths with spaces in. This is the same as when using the xcopy command line. If in doubt surround both sides with quotes.

Logging
A log file is created on the root of your storage card called xcopyce.log. This file is over written every time you run.

Change Log
0v01
- Initial Development.
0v02
- No longer requires the storage card to be called "\Storage Card".
0v03
- Support for destination file attribute setting.
- Now over writes read-only files in the destination.
- Changes to log file structure.
- Handles blank lines in the config file.
0v04
- Bug fix: Line parser algorithm should handle work in all cases. (#10)

Credits
l3v5y for the idea.
Sleuth255 for his UC work in the first place.
nikagl for inspiring more updates.

Download
Here

MD5 Hash
Code:
9E08A46EC3E049FF71BFF476FE818BD4
Thanks
Dave
Attached Files
File Type: zip xcopyce 0v04.zip - [Click for QR Code] (5.0 KB, 1036 views)
 
 
18th August 2008, 05:14 PM |#2  
nikagl's Avatar
Senior Member
Flag Nieuwegein, NL
Thanks Meter: 616
 
Donate to Me
More
Thanks Dave! And now let's add some tags for the search engines which I had initially used to find this wonderful program, but did not (I only accidentaly stumbled accross it because you had the link in your sig!):

This tool is the perfect addition to Sashimi and/or UC / User Customization as it can be executed using a Command Line on any Windows Mobile (WM5 or WM6) device to copy files and overwrite read only files!

Regards,

Nika.
18th August 2008, 08:44 PM |#3  
l3v5y's Avatar
Retired Senior Moderator
Flag Bristol
Thanks Meter: 40
 
Donate to Me
More
Me likey file attributes!

Now I'm going to have to flash a ROM to try it out!

One question though... Can this copy files as well as folders?

BTW, I added this to the UC post.
19th August 2008, 12:17 AM |#4  
DaveShaw's Avatar
OP Senior Moderator Emeritus + Wiki Bureaucrat
Flag Huddersfield
Thanks Meter: 468
 
More
Quote:
Originally Posted by l3v5y

Me likey file attributes!

Now I'm going to have to flash a ROM to try it out!

One question though... Can this copy files as well as folders?

BTW, I added this to the UC post.

Thanks mate. At the moment just folders. I'll look at files for 0v04.

Ta
Dave
19th August 2008, 08:30 AM |#5  
nikagl's Avatar
Senior Member
Flag Nieuwegein, NL
Thanks Meter: 616
 
Donate to Me
More
Hi Dave,

I guess for compatibility with UC you've created the current tool, where it uses a file to perform the copy tasks. Would it be possible to create a 100% command line method, like xcopy in Windows?

For instance here's the usage of xcopyce I'd love to see (straight from xcopy /? ):

XCOPYCE source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] [/C] [/i] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/u] [/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z] [/EXCLUDE:file1[+file2][+file3]...]

source: Specifies the file(s) to copy.
destination: Specifies the location and/or name of new files.
/A = Copies only files with the archive attribute set, doesn't change the attribute.
/M = Copies only files with the archive attribute set, turns off the archive attribute.
/D:m-d-y = Copies files changed on or after the specified date. If no date is given, copies only those files whose source time is newer than the destination time.
/EXCLUDE:file1[+file2][+file3]... = Specifies a list of files containing strings. Each string should be in a separate line in the files. When any of the strings match any part of the absolute path of the file to be copied, that file will be excluded from being copied. For example, specifying a string like \obj\ or .obj will exclude all files underneath the directory obj or all files with the .obj extension respectively.
/P = Prompts you before creating each destination file.
/S = Copies directories and subdirectories except empty ones.
/E = Copies directories and subdirectories, including empty ones. Same as /S /E. May be used to modify /T.
/V = Verifies each new file.
/W = Prompts you to press a key before copying.
/C = Continues copying even if errors occur.
/I = If destination does not exist and copying more than one file, assumes that destination must be a directory.
/Q = Does not display file names while copying.
/F = Displays full source and destination file names while copying.
/L = Displays files that would be copied.
/G = Allows the copying of encrypted files to destination that does not support encryption.
/H = Copies hidden and system files also.
/R = Overwrites read-only files.
/T = Creates directory structure, but does not copy files. Does not include empty directories or subdirectories. /T /E includes empty directories and subdirectories.
/U = Copies only files that already exist in destination.
/K = Copies attributes. Normal Xcopy will reset read-only attributes.
/N = Copies using the generated short names.
/O = Copies file ownership and ACL information.
/X = Copies file audit settings (implies /O).
/Y = Suppresses prompting to confirm you want to overwrite an existing destination file.
/Z = Copies networked files in restartable mode.

Regards,

Nika.
19th August 2008, 09:13 AM |#6  
DaveShaw's Avatar
OP Senior Moderator Emeritus + Wiki Bureaucrat
Flag Huddersfield
Thanks Meter: 468
 
More
Quote:
Originally Posted by nikagl

Hi Dave,

I guess for compatibility with UC you've created the current tool, where it uses a file to perform the copy tasks. Would it be possible to create a 100% command line method, like xcopy in Windows?

For instance here's the usage of xcopyce I'd love to see (straight from xcopy /? ):

...snip...

Regards,

Nika.

If I ever get enough free time I might do...

Ta
Dave
19th August 2008, 10:34 AM |#7  
l3v5y's Avatar
Retired Senior Moderator
Flag Bristol
Thanks Meter: 40
 
Donate to Me
More
It's working well!

But, I must disagree with
Quote:

This is an application idea l3v5y came up with and somehow conned me into writing .

I did not "con" you into doing it. You chose to do it.
19th August 2008, 10:50 AM |#8  
DaveShaw's Avatar
OP Senior Moderator Emeritus + Wiki Bureaucrat
Flag Huddersfield
Thanks Meter: 468
 
More
Quote:
Originally Posted by l3v5y

It's working well!

But, I must disagree with

I did not "con" you into doing it. You chose to do it.

Lighten up

Quote:
Originally Posted by DaveShaw

Just for the record I was not conned, hoodwinked, tricked or in any way forced against my will by l3v5y to create this program.

Hows that suit you ?

Only kidding, I'll expand the word conned into convinced.

Ta
Dave
19th August 2008, 11:47 AM |#9  
Junior Member
Thanks Meter: 0
 
More
Thanks a lot. It's a great tool. I'll try to use it with my batterystatus theme.
6th September 2008, 03:35 PM |#10  
Member
Thanks Meter: 16
 
More
Error in parser ?
Hi,

first of all, thanks for this apps !

I've found an error : I'm using this line :

"\Carte de Stockage\@Backup\Apps\Application Data" "\Application Data"

and it doesn't work as it must do. I looked at the log file, and found that it try :

source: \Carte de Stockage\@Backup\Apps\Application Data ---- ok
dest: \Application
attribs: Data

so even with double quotes, the parser find a space, and so choose last chars (in my case the end of path) as attribs.

I made a few tests, always bad :
"\Carte de Stockage\@Backup\Apps\Application Data" "\Application Data" r ---> attribs are Data "r
without quotes
...

Can you fix it please?

Thanks
7th September 2008, 09:23 PM |#11  
DaveShaw's Avatar
OP Senior Moderator Emeritus + Wiki Bureaucrat
Flag Huddersfield
Thanks Meter: 468
 
More
Quote:
Originally Posted by TheBeO

Hi,

first of all, thanks for this apps !

I've found an error : I'm using this line :

"\Carte de Stockage\@Backup\Apps\Application Data" "\Application Data"

and it doesn't work as it must do. I looked at the log file, and found that it try :

source: \Carte de Stockage\@Backup\Apps\Application Data ---- ok
dest: \Application
attribs: Data

so even with double quotes, the parser find a space, and so choose last chars (in my case the end of path) as attribs.

I made a few tests, always bad :
"\Carte de Stockage\@Backup\Apps\Application Data" "\Application Data" r ---> attribs are Data "r
without quotes
...

Can you fix it please?

Thanks

Doh!

I'll make a fix by then end of play tomorrow, providing I can re-create this first time.

Dave
Post Reply Subscribe to Thread

Tags
copy, copy folders, directories, folders, xcopyce

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes