Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: WinSCP scripts filling up page file

Did you check if some WinSCP processes are left behind?
Ethan.N

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.