OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

[SOLVED] filecopy command

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base
View previous topic :: View next topic  
Author Message
kadil
Power User
Power User


Joined: 13 Feb 2008
Posts: 50

PostPosted: Thu Feb 21, 2008 2:36 pm    Post subject: [SOLVED] filecopy command Reply with quote

Hello,

I am trying to use the filecopy command in linux, and keep getting errors with the path string format that I am using. The way I am writing the command is:

filecopy "/home/kadil/test.txt", "/home/kadil/other_directory/text.txt"

It is probably a stupid mistake, but I cannot see the problem yet.

Any assistance would be appreciated.

Regards,
Kim


Last edited by kadil on Thu Feb 21, 2008 5:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
TheGurkha
General User
General User


Joined: 30 Dec 2006
Posts: 35
Location: North Wales, United Kingdon

PostPosted: Thu Feb 21, 2008 3:02 pm    Post subject: Reply with quote

This isn't a linux forum you know....

But I think you probably need to use cp instead of filecopy, and don't specify the filename inthe target.

See this link

http://www.computerhope.com/unix/ucp.htm
_________________
Grunting - the cost free hobby for all.
Back to top
View user's profile Send private message
kadil
Power User
Power User


Joined: 13 Feb 2008
Posts: 50

PostPosted: Thu Feb 21, 2008 3:08 pm    Post subject: Reply with quote

so instead of using the oobasic filecopy command, use the shell("cp ....") command. That'll do. I would rather my app be more portable, but I can code around it.

Thanks.
Kim
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Base All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group