• twitter
  • facebook
  • rules
  • news
 
Page 1 of 3 123

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

  • Thread Tools: Tweet this thread
  • Vote for Thread to be Featured on the XDA Portal
Default [APP] xcopyce - 0v04 [08 SEP 2008]

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, 965 views)

Last edited by DaveShaw; 21st January 2009 at 05:13 PM. Reason: 0v04

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.

__________________
Nika Gerson Lohman
__________________


Current Devices:
HTC Touch Pro 2 (Rhodium) / 23569.Sense2.5.Cookie.Jul.8
Samsung Galaxy S+ (I9001) / I9001XXKPS / Cranium RCx (latest )
Acer Iconia Smart / default ROM (rooted - see here)

Dislike TW Calendar/E-Mail or Calendar with USB icon? Click here

Still looking for the Thank You button? Change your style to XDA 2010 (bottom left hand corner)

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.

Originally Posted by l3v5y  View Post

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

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.

__________________
Nika Gerson Lohman
__________________


Current Devices:
HTC Touch Pro 2 (Rhodium) / 23569.Sense2.5.Cookie.Jul.8
Samsung Galaxy S+ (I9001) / I9001XXKPS / Cranium RCx (latest )
Acer Iconia Smart / default ROM (rooted - see here)

Dislike TW Calendar/E-Mail or Calendar with USB icon? Click here

Still looking for the Thank You button? Change your style to XDA 2010 (bottom left hand corner)

Originally Posted by nikagl  View Post

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

It's working well!

But, I must disagree with

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.

Originally Posted by l3v5y  View Post

It's working well!

But, I must disagree with

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

Lighten up

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

Thanks a lot. It's a great tool. I'll try to use it with my batterystatus theme.

Default 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


Tags

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Rules
All times are GMT +1. The time now is 07:39 PM.