Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: MV Command appends from location at the end of the to location

The mv command is for moving remote file to another remote location.

To move a local file to remote directory, use put -delete.
CaritoBito

MV Command appends from location at the end of the to location

Ok. Tried this multiple ways. Have a file on remote server and I'm trying to move it to another location.
I've tried a drive mapping and UNC path method for the from location.

Mapped windows drive to Z:\testfile.txt
And tried its UNC path
\\IP\folder1\folder2\testfile.txt

When I do this or use the unc path instead...
MV Z:\testfile.txt /secondlocation/folder1/folder2/testfile.txt
MV Z:\testfile.txt /secondlocation/folder1/folder2/*.txt
MV Z:\*.txt /secondlocation/folder1/folder2/*.txt

I get this in the error:
Error moving file 'Z:\testfile.txt' to '/secondlocation/folder1/folder2/Z:\testfile.txt
No such file or directory.
Error code: 2


Why is it adding the from location to the end of the second location? I get the UNC prob cant be used but if I do this PUT Z:\testfile.txt /secondlocation/folder1/folder2/testfile.txt it works just fine.

THX for any help