Topic "unable to use mv or rm in task scheduler"

Author Message
sammy
[View user's profile]

Joined: 2017-02-23
Posts: 2
Hi,

I am new to WinSCP and I am using the following argument in task scheduler

/log=E:\Winscp_logs\winscp.log /command "open sftp://username:pwd@Hostname/" "get -neweronly *.txt C:\newdirectory\" "mv *.* *.php"

For some reason, the file gets downloaded but did not get renamed. I have also tried using rm *.* that does not work either. Log shows Permission Denied.

Script: Error deleting file 'New Text Document (2).txt'.
Script: Permission denied.
Error code: 3
Error message from server (en): Permission denied.

I even changed the file permission but that did not resolve the issue.

Any Suggestions?
sammy
[View user's profile]

Joined: 2017-02-23
Posts: 2
Found the error. The user did not have modify permissions on the directory.
Advertisements

You can post new topics in this forum






Search

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