WinSCP scripts filling up page file

Advertisement

Ethan.N
Joined:
Posts:
1

WinSCP scripts filling up page file

I am trying to confirm if I am onto the right trail. 1 month ago I setup WinSCP and a few batch files to automatically transfer files for an EDI system I helped implement, they go off every 15 minutes and are triggered by Windows Task Scheduler.

Now every few days the Windows Page file fills up entirely and the server becomes unresponsive. Do I have something not set correctly?

@echo off
 
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /log="C:\Logs\810upload.log" /ini=nul ^
  /command ^
    "open ftp://username:password@ftp.example.com/" ^
    "lcd ""C:\Program Files (x86)\EDI\810\outbound""" ^
    "cd /in" ^
    "put -delete -filemask=""|*/"" *" ^
    "exit"
 
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)
 
exit /b %WINSCP_RESULT%
Server is on Windows Server 2022.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum