Batch file for multiple servers -
i created batch file deleting files on remote servers , it's working, not able use on multiple servers.
for example:
cd c:\program files\winscp winscp.com /command ^ "open sftp://test:pwd@server1" ^ "cd ""/home/test/desktop/rot & sec""" ^ "rm *.txt *.csv *.spn" ^ close cd c:\program files\winscp winscp.com /command ^ "open sftp://chief:pwd@server2" ^ "cd ""/home/chief/desktop/rot & sec""" ^ "rm *.txt *.csv *.spn" ^
it's not deleting files on server2
.
Comments
Post a Comment