INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

copy all files of a path

copy all files of a path

(OP)
Always in C5ee,

is the Clarion command "copy" able to copy all files of a path to another (or copy a path).

As I'm not able to use run('command.com ...')(see the my other thread about makedir), I don't know how to do.

Thanks for help a "poor" user

best regards

Phil

RE: copy all files of a path

(OP)
Using

run('command.com /c copy photos\*.* SiteWeb\photos\*.*',1)

is good but don't manage long name files

RE: copy all files of a path

Hi!

Try putting the long path within double quotes.

Regards
 

RE: copy all files of a path

(OP)
Hello ShankarJ

Sorry but I don't understand what you mean. (I speak english very bad)

A exemple is better for me

Is there a way with the COPY command?

Many thanks

HAve a good day

RE: copy all files of a path

Hi!

run('command.com /c copy "My Photos\*.*" "SiteWeb\My Photos"',1)

OR

run('command.com /c "copy My Photos\*.* SiteWeb\My Photos"',1)

Regards
 

RE: copy all files of a path

(OP)
Hi ShankarJ

no, it's don't works

I try with xcopy command

!run('command.com /c copy photos\*.* SiteWeb\photos\*.*',1)
run('command.com /c xcopy/y/a photos SiteWeb\photos',1)

The copy is good (with long names) but the program is blocked at the end (I have to do ctrl+alt+del  ... to continue the script and stop)


grrrrrrrrrrrrr

RE: copy all files of a path

I try with this command and that is good

run('cmd.exe /c copy "source file\*.*" "target file"',1)

RE: copy all files of a path

(OP)
Thank you verry much

The same think with run('cmd.exe /c copy "source file\*.*" "target file"',1) and run('command.com /c xcopy/y/a photos SiteWeb\photos',1)

The copy is good (with long names) but the program is blocked after the cmd prompt line is closed and I have to do ctrl+alt+del  ... to continue the script and then stop at the end of the script)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close