Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy all files of a path 1

Status
Not open for further replies.

berthoud

Technical User
Joined
Oct 31, 2010
Messages
51
Location
FR
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
 
Using

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

is good but don't manage long name files
 
Hi!

Try putting the long path within double quotes.

Regards
 
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
 
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
 
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
 
I try with this command and that is good

run('cmd.exe /c copy "source file\*.*" "target file"',1)
 
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)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top