Topic "Moving Files From Command Line"

Author Message
rin-tin-tin

Guest


From one folder off my remote server I highlighted multiple log files, right clicked one of them, scrolled down to custom commands, then to move. I proceeded to type in the directory of my local hardrive and then ok. To my horror the log files disapeared and a file was created on my remote server with the local hardrive information. This new file is small and I can't seem to open it. Also no files were transferred to my local hard drive.

These log files are extremely important.
If someone knows where these files ended up and what I need to do to recover them, please let me know asap.

-Nick
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
"Custom commands" is list of user defined commands that are executed on the server. You cannot use it to transfer files.

It is hard to tell what has happened with your file. Pre-defined "Move to" command does:
mv file target
Where file is selected file and target is the path you've entered in the box.
_________________
Martin Prikryl
rin-tin-tin

Guest


This is what I typed in for location:

I:\Accesslog

Any idea where this could have ended up?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
If you have executed
mv -f filename "I:\Accesslog"
for every selected file, then every file was renamed to "I:\Accesslog", one by one. Making each file overwrite the previous.

So I fear that you have lost all the files with exception of the last one. I'm sorry Sad
_________________
Martin Prikryl
rin_tin_tin

Guest


Thanks for your help.

Wink
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License