Batch File will not rename files on FTP Server

Advertisement

Visitor76
Joined:
Posts:
2

Batch File will not rename files on FTP Server

Hello,

I've created a batch that is designed to open WinSCP, login, and rename the files under a folder on our FTP server. However the batch is not renaming the files. Below is what I have:
@echo off
 
start sftp://Username:Password@FTP.MySite.com:Port
 
REN //FTP.MySite.com/Folder/File.txt File_%date:~4,2%%date:~7,2%%date:~10,4%.txt
What am I doing wrong?

Thank you.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum