Post a reply

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

Guest

[quote="martin"]
Please attach a full session log file showing the problem.





. 2017-09-22 10:19:51.603 --------------------------------------------------------------------------
. 2017-09-22 10:19:51.603 WinSCP Version 5.11.1 (Build 7725) (OS 6.3.9600 - Windows Server 2012 R2 Standard)
. 2017-09-22 10:19:51.603 Configuration: C:\install\SCP\%FILENAME%.ini
. 2017-09-22 10:19:51.603 Log level: Normal
. 2017-09-22 10:19:51.603 Local account: %USERNAME%
. 2017-09-22 10:19:51.603 Working directory: C:\install\SCP
. 2017-09-22 10:19:51.603 Process ID: 5960
. 2017-09-22 10:19:51.603 Command-line: "C:\program files (x86)\winscp\WinSCP.exe" /console=5.11.1 /consoleinstance=_12284_597 "/script=c:\install\scp\ftpscript.txt" "/log=c:\install\scp\ftpscript.log"
. 2017-09-22 10:19:51.603 Time zone: Current: GMT-5, Standard: GMT-6 (Central Standard Time), DST: GMT-5 (Central Daylight Time), DST Start: 3/12/2017, DST End: 11/5/2017
. 2017-09-22 10:19:51.603 Login time: Friday, September 22, 2017 10:19:51 AM
. 2017-09-22 10:19:51.603 --------------------------------------------------------------------------
. 2017-09-22 10:19:51.603 Script: Retrospectively logging previous script records:
> 2017-09-22 10:19:51.603 Script: option confirm off
< 2017-09-22 10:19:51.603 Script: confirm off
> 2017-09-22 10:19:51.603 Script: option failonnomatch off
< 2017-09-22 10:19:51.603 Script: failonnomatch off
> 2017-09-22 10:19:51.603 Script: open ftp://%connection_info%
. 2017-09-22 10:19:51.603 --------------------------------------------------------------------------
. 2017-09-22 10:19:51.603 Session name: %USERNAME%.%HOSTNAME%.com (Ad-Hoc site)
. 2017-09-22 10:19:51.603 Host name: ftp.%HOSTNAME%.com (Port: 21)
. 2017-09-22 10:19:51.603 User name: 0131452.001 (Password: Yes, Key file: No, Passphrase: No)
. 2017-09-22 10:19:51.603 Transfer Protocol: FTP
. 2017-09-22 10:19:51.603 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2017-09-22 10:19:51.603 Disable Nagle: No
. 2017-09-22 10:19:51.603 Proxy: None
. 2017-09-22 10:19:51.603 Send buffer: 262144
. 2017-09-22 10:19:51.603 UTF: Auto
. 2017-09-22 10:19:51.603 FTPS: None [Client certificate: No]
. 2017-09-22 10:19:51.603 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2017-09-22 10:19:51.603 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2017-09-22 10:19:51.603 Cache directory changes: Yes, Permanent: Yes
. 2017-09-22 10:19:51.603 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2017-09-22 10:19:51.603 Timezone offset: 0h 0m
. 2017-09-22 10:19:51.603 --------------------------------------------------------------------------
. 2017-09-22 10:19:51.603 Connecting to ftp.%HOSTNAME%.com ...
. 2017-09-22 10:19:51.697 Connected with ftp.%HOSTNAME%.com. Waiting for welcome message...
< 2017-09-22 10:19:51.759 220 Note, your actions are logged and audited
> 2017-09-22 10:19:51.759 USER %USERNAME%
< 2017-09-22 10:19:51.806 331 Username OK. Need password.
> 2017-09-22 10:19:51.806 PASS ***************
< 2017-09-22 10:19:52.541 230 Password OK. Connected. logged in
> 2017-09-22 10:19:52.541 SYST
< 2017-09-22 10:19:52.588 215 UNIX Type: L8
> 2017-09-22 10:19:52.588 FEAT
< 2017-09-22 10:19:52.635 211-Extensions supported:
< 2017-09-22 10:19:52.697 SSCN
< 2017-09-22 10:19:52.713 PBSZ
< 2017-09-22 10:19:52.713 PROT
< 2017-09-22 10:19:52.713 CCC
< 2017-09-22 10:19:52.713 CLNT
< 2017-09-22 10:19:52.713 MDTM
< 2017-09-22 10:19:52.713 MDTM YYYYMMDDHHMMSS[+-TZ];filename
< 2017-09-22 10:19:52.713 MFMT
< 2017-09-22 10:19:52.713 SIZE
< 2017-09-22 10:19:52.713 REST STREAM
< 2017-09-22 10:19:52.713 MODE Z
< 2017-09-22 10:19:52.713 LIST -Q
< 2017-09-22 10:19:52.713 SITE UTIME
< 2017-09-22 10:19:52.713 SITE MD5
< 2017-09-22 10:19:52.713 SITE MD5s
< 2017-09-22 10:19:52.713 SITE RANDOMACCESS
< 2017-09-22 10:19:52.713 MLST Type*;Size*;Modify*;Perm*;UNIX.owner*;UNIX.group*;
< 2017-09-22 10:19:52.713 ISO-8859-1
< 2017-09-22 10:19:52.713 211 END
> 2017-09-22 10:19:52.713 CLNT WinSCP-release-5.11.1
< 2017-09-22 10:19:52.744 200 Noted.
> 2017-09-22 10:19:52.744 OPTS UTF8 ON
< 2017-09-22 10:19:52.791 200 UTF8 OPTS ON.
. 2017-09-22 10:19:52.791 Connected
. 2017-09-22 10:19:52.791 --------------------------------------------------------------------------
. 2017-09-22 10:19:52.791 Using FTP protocol.
. 2017-09-22 10:19:52.791 Doing startup conversation with host.
> 2017-09-22 10:19:52.791 PWD
< 2017-09-22 10:19:52.838 257 "/" is cwd.
. 2017-09-22 10:19:52.838 Getting current directory name.
. 2017-09-22 10:19:52.838 Startup conversation with host finished.
< 2017-09-22 10:19:52.838 Script: Active session: [1] %USERNAME%@ftp.%HOSTNAME%.com
> 2017-09-22 10:19:52.838 Script: get %FILE1%.C2M C:\%FILEPATH%
. 2017-09-22 10:19:52.838 Listing file "%FILE1%.C2M".
. 2017-09-22 10:19:52.838 Retrieving file information...
> 2017-09-22 10:19:52.838 MLST /%FILE1%.C2M
< 2017-09-22 10:19:53.025 250-Listing /%FILE1%.C2M
< 2017-09-22 10:19:53.103 Type=file;Size=1962;Modify=20170921185546;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE1%.C2M
< 2017-09-22 10:19:53.103 250 End
. 2017-09-22 10:19:53.103 Type=file;Size=1962;Modify=20170921185546;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE1%.C2M
. 2017-09-22 10:19:53.103 Retrieving file information successful
. 2017-09-22 10:19:53.103 %FILE1%.C2M;-;1962;2017-09-21T18:55:46.000Z;3;"user" [0];"group" [0];---------;0
. 2017-09-22 10:19:53.103 Copying 1 files/directories to local directory "C:\%FILEPATH%" - total size: 1,962
. 2017-09-22 10:19:53.103 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2017-09-22 10:19:53.103 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2017-09-22 10:19:53.103 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2017-09-22 10:19:53.103 File: '/%FILE1%.C2M' [2017-09-21T18:55:46.000Z] [1962]
. 2017-09-22 10:19:53.103 Copying "/%FILE1%.C2M" to local directory started.
. 2017-09-22 10:19:53.103 Binary transfer mode selected.
. 2017-09-22 10:19:53.103 Starting download of /%FILE1%.C2M
> 2017-09-22 10:19:53.103 TYPE A
< 2017-09-22 10:19:53.150 200 Command ok (ASCII).
> 2017-09-22 10:19:53.150 PASV
< 2017-09-22 10:19:53.197 227 Entering Passive Mode (69,41,210,27,200,41)
> 2017-09-22 10:19:53.197 MLSD
. 2017-09-22 10:19:53.197 Connecting to %HOST%:%PORT% ...
< 2017-09-22 10:19:53.353 150 Opening data connection for file list.
. 2017-09-22 10:19:53.510 Data connection closed
. 2017-09-22 10:19:53.510 Type=file;Size=1962;Modify=20170921135546;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE1%.C2M
. 2017-09-22 10:19:53.510 Type=file;Size=3715;Modify=20170922000058;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE2%.C2M
. 2017-09-22 10:19:53.510 Type=file;Size=5052;Modify=20170922032208;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE3%.C2M
. 2017-09-22 10:19:53.510 Type=file;Size=3019;Modify=20170922001708;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE4%.C2M
. 2017-09-22 10:19:53.510 Type=file;Size=159085;Modify=20170922034500;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %misc_file%.TXT
. 2017-09-22 10:19:53.510 Type=file;Size=140823;Modify=20170922020351;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %misc_file%.TXT
. 2017-09-22 10:19:53.510 Type=file;Size=1237249;Modify=20170922040119;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %misc_file%.TXT
. 2017-09-22 10:19:53.510 Type=file;Size=18973;Modify=20170921055703;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %misc_file%.TXT
< 2017-09-22 10:19:53.510 226 Directory transfer complete.
> 2017-09-22 10:19:53.510 TYPE I
< 2017-09-22 10:19:53.557 200 Command ok (Binary).
> 2017-09-22 10:19:53.557 PASV
< 2017-09-22 10:19:53.603 227 Entering Passive Mode (69,41,210,27,200,43)
> 2017-09-22 10:19:53.603 RETR %FILE1%.C2M
. 2017-09-22 10:19:53.603 Connecting to %HOST%:%PORT% ...
< 2017-09-22 10:19:53.838 150 Opening BINARY mode data connection.
. 2017-09-22 10:19:53.853 Data connection closed
< 2017-09-22 10:19:53.904 226 Transfer completed.
. 2017-09-22 10:19:53.904 Download successful
. 2017-09-22 10:19:53.904 Transfer done: '/%FILE1%.C2M' => 'C:\%FILEPATH%%FILE1%.C2M' [1962]
. 2017-09-22 10:19:53.904 Copying finished: Transferred: 1,962, Elapsed: 0:00:00, CPS: 31,645/s
> 2017-09-22 10:19:53.904 Script: get %FILE2%.C2M C:\%FILEPATH%
. 2017-09-22 10:19:53.904 Listing file "%FILE2%.C2M".
. 2017-09-22 10:19:53.904 Retrieving file information...
> 2017-09-22 10:19:53.904 MLST /%FILE2%.C2M
< 2017-09-22 10:19:53.966 250-Listing /%FILE2%.C2M
< 2017-09-22 10:19:54.044 Type=file;Size=3715;Modify=20170922000058;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE2%.C2M
< 2017-09-22 10:19:54.044 250 End
. 2017-09-22 10:19:54.044 Type=file;Size=3715;Modify=20170922000058;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE2%.C2M
. 2017-09-22 10:19:54.044 Retrieving file information successful
. 2017-09-22 10:19:54.044 %FILE2%.C2M;-;3715;2017-09-22T00:00:58.000Z;3;"user" [0];"group" [0];---------;0
. 2017-09-22 10:19:54.044 Copying 1 files/directories to local directory "C:\%FILEPATH%" - total size: 3,715
. 2017-09-22 10:19:54.044 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2017-09-22 10:19:54.044 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2017-09-22 10:19:54.044 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2017-09-22 10:19:54.044 File: '/%FILE2%.C2M' [2017-09-22T00:00:58.000Z] [3715]
. 2017-09-22 10:19:54.044 Copying "/%FILE2%.C2M" to local directory started.
. 2017-09-22 10:19:54.044 Binary transfer mode selected.
. 2017-09-22 10:19:54.044 Starting download of /%FILE2%.C2M
> 2017-09-22 10:19:54.044 TYPE I
< 2017-09-22 10:19:54.091 200 Command ok (Binary).
> 2017-09-22 10:19:54.091 PASV
< 2017-09-22 10:19:54.138 227 Entering Passive Mode (69,41,210,27,200,44)
> 2017-09-22 10:19:54.138 RETR %FILE2%.C2M
. 2017-09-22 10:19:54.138 Connecting to %HOST%:51244 ...
< 2017-09-22 10:19:54.279 150 Opening BINARY mode data connection.
. 2017-09-22 10:19:54.279 Data connection closed
< 2017-09-22 10:19:54.359 226 Transfer completed.
. 2017-09-22 10:19:54.359 Download successful
. 2017-09-22 10:19:54.359 Transfer done: '/%FILE2%.C2M' => 'C:\%FILEPATH%%FILE2%.C2M' [3715]
. 2017-09-22 10:19:54.359 Copying finished: Transferred: 3,715, Elapsed: 0:00:00, CPS: 47,628/s
> 2017-09-22 10:19:54.359 Script: get %FILE4%.C2M C:\%FILEPATH%
. 2017-09-22 10:19:54.359 Listing file "%FILE4%.C2M".
. 2017-09-22 10:19:54.359 Retrieving file information...
> 2017-09-22 10:19:54.359 MLST /%FILE4%.C2M
< 2017-09-22 10:19:54.406 250-Listing /%FILE4%.C2M
< 2017-09-22 10:19:54.485 Type=file;Size=3019;Modify=20170922001708;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE4%.C2M
< 2017-09-22 10:19:54.485 250 End
. 2017-09-22 10:19:54.485 Type=file;Size=3019;Modify=20170922001708;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE4%.C2M
. 2017-09-22 10:19:54.485 Retrieving file information successful
. 2017-09-22 10:19:54.485 %FILE4%.C2M;-;3019;2017-09-22T00:17:08.000Z;3;"user" [0];"group" [0];---------;0
. 2017-09-22 10:19:54.485 Copying 1 files/directories to local directory "C:\%FILEPATH%" - total size: 3,019
. 2017-09-22 10:19:54.485 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2017-09-22 10:19:54.485 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2017-09-22 10:19:54.485 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2017-09-22 10:19:54.485 File: '/%FILE4%.C2M' [2017-09-22T00:17:08.000Z] [3019]
. 2017-09-22 10:19:54.485 Copying "/%FILE4%.C2M" to local directory started.
. 2017-09-22 10:19:54.485 Binary transfer mode selected.
. 2017-09-22 10:19:54.485 Starting download of /%FILE4%.C2M
> 2017-09-22 10:19:54.485 TYPE I
< 2017-09-22 10:19:54.532 200 Command ok (Binary).
> 2017-09-22 10:19:54.532 PASV
< 2017-09-22 10:19:54.579 227 Entering Passive Mode (69,41,210,27,200,46)
> 2017-09-22 10:19:54.579 RETR %FILE4%.C2M
. 2017-09-22 10:19:54.579 Connecting to %HOST%:%PORT% ...
< 2017-09-22 10:19:54.719 150 Opening BINARY mode data connection.
. 2017-09-22 10:19:54.719 Data connection closed
< 2017-09-22 10:19:54.797 226 Transfer completed.
. 2017-09-22 10:19:54.797 Download successful
. 2017-09-22 10:19:54.797 Transfer done: '/%FILE4%.C2M' => 'C:\%FILEPATH%%FILE4%.C2M' [3019]
. 2017-09-22 10:19:54.797 Copying finished: Transferred: 3,019, Elapsed: 0:00:00, CPS: 38,705/s
> 2017-09-22 10:19:54.797 Script: get %FILE3%.C2M C:\%FILEPATH%
. 2017-09-22 10:19:54.797 Listing file "%FILE3%.C2M".
. 2017-09-22 10:19:54.797 Retrieving file information...
> 2017-09-22 10:19:54.797 MLST /%FILE3%.C2M
< 2017-09-22 10:19:54.844 250-Listing /%FILE3%.C2M
< 2017-09-22 10:19:54.891 Type=file;Size=5052;Modify=20170922032208;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE3%.C2M
< 2017-09-22 10:19:54.891 250 End
. 2017-09-22 10:19:54.891 Type=file;Size=5052;Modify=20170922032208;Perm=r,w,a,d,f;UNIX.owner=user;UNIX.group=group; %FILE3%.C2M
. 2017-09-22 10:19:54.891 Retrieving file information successful
. 2017-09-22 10:19:54.891 %FILE3%.C2M;-;5052;2017-09-22T03:22:08.000Z;3;"user" [0];"group" [0];---------;0
. 2017-09-22 10:19:54.891 Copying 1 files/directories to local directory "C:\%FILEPATH%" - total size: 5,052
. 2017-09-22 10:19:54.891 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2017-09-22 10:19:54.891 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2017-09-22 10:19:54.891 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2017-09-22 10:19:54.891 File: '/%FILE3%.C2M' [2017-09-22T03:22:08.000Z] [5052]
. 2017-09-22 10:19:54.891 Copying "/%FILE3%.C2M" to local directory started.
. 2017-09-22 10:19:54.891 Binary transfer mode selected.
. 2017-09-22 10:19:54.891 Starting download of /%FILE3%.C2M
> 2017-09-22 10:19:54.891 TYPE I
< 2017-09-22 10:19:54.938 200 Command ok (Binary).
> 2017-09-22 10:19:54.938 PASV
< 2017-09-22 10:19:55.001 227 Entering Passive Mode (69,41,210,27,200,47)
> 2017-09-22 10:19:55.001 RETR %FILE3%.C2M
. 2017-09-22 10:19:55.001 Connecting to %HOST%:51247 ...
< 2017-09-22 10:19:55.251 150 Opening BINARY mode data connection.
. 2017-09-22 10:19:55.266 Data connection closed
< 2017-09-22 10:19:55.344 226 Transfer completed.
. 2017-09-22 10:19:55.344 Download successful
. 2017-09-22 10:19:55.344 Transfer done: '/%FILE3%.C2M' => 'C:\%FILEPATH%%FILE3%.C2M' [5052]
. 2017-09-22 10:19:55.344 Copying finished: Transferred: 5,052, Elapsed: 0:00:00, CPS: 53,744/s
> 2017-09-22 10:19:55.344 Script: get %File_that_doesnt_exist_on_server%.C2M C:\%FILEPATH%
. 2017-09-22 10:19:55.344 Listing file "%File_that_doesnt_exist_on_server%.C2M".
. 2017-09-22 10:19:55.344 Retrieving file information...
> 2017-09-22 10:19:55.344 MLST /%File_that_doesnt_exist_on_server%.C2M
< 2017-09-22 10:19:55.422 550 Access not allowed.
. 2017-09-22 10:19:55.422 Could not retrieve file information
< 2017-09-22 10:19:55.422 Script: Can't get attributes of file '%File_that_doesnt_exist_on_server%.C2M'.
< 2017-09-22 10:19:55.422 Could not retrieve file information

< 2017-09-22 10:19:55.422 Access not allowed.
. 2017-09-22 10:19:55.422 Script: Failed
. 2017-09-22 10:19:55.422 Script: Exit code: 1
. 2017-09-22 10:19:55.422 Disconnected from server
martin

techtony wrote:

...so now it fails when it hits a file that doesn't exist.

...tried the 'option failonnomatch off' option - to no avail. :(

...throws error when trying to pull attributes of nonexistent file - causes rest of script to fail. Did the option change?


Please attach a full session log file showing the problem.
techtony

...so now it fails when it hits a file that doesn't exist.

...tried the 'option failonnomatch off' option - to no avail. :(

...throws error when trying to pull attributes of nonexistent file - causes rest of script to fail. Did the option change?
Guest

Re: Scheduled Task Scripted Execution Woes

martin wrote:

I'd assume that the M: is a mapped drive and it's not accessible by the Windows Scheduler due to some local policy.

For a start, try to download to a local drive.



Good valid thought that hadn't even crossed my mind - so thanks for that! :)
I've converted my filepaths to UNC paths and have applied 'pushd' and 'popd' commands where I think they should go. We'll see tomorrow morning if that resolves it. It'd be great if it turns out to be just that easy. I'll post a followup tomorrow.
So here's hoping...
martin

Re: Scheduled Task Scripted Execution Woes

I'd assume that the M: is a mapped drive and it's not accessible by the Windows Scheduler due to some local policy.

For a start, try to download to a local drive.
techtony

Scheduled Task Scripted Execution Woes

For having never set this up to automate before, all in all, I think I'm doing pretty well. But alas, I'm stuck and could use some expert assistance.

The Goal - I need to automate the following processes:
- log into FTP server (nothing special, just UN and PW - no ssl or keyfiles)
- download all files based on filename mask (i.e.:get *.c2m /%DEST_Dir%)
- rename all newly downloaded filenames to append the date (done with a separate batch - would be great if I could kickstart that .cmd with my winscp .cmd)
- exit

What I have thus far:
Commands put forth by scheduled task:  "C:\program files (x86)\winscp\winscp.com"

Argument:  /ini="c:\install\scp\%Filename%.ini" /script=c:\install\scp\ftpscript.txt /log=c:\install\scp\ftpscript.log


'ftprun.cmd'
"C:\program files (x86)\winscp\winscp.com" /script=c:\install\scp\ftpscript.txt /log=c:\install\scp\ftpscript.log


'ftpscript.txt'
# no need for confirmation prompts where we're going

option confirm off

# connect to server
open ftp://%Redacted%:%Redacted%@ftp.%Redacted%.com/

# download all .C2M files to local dir M:\%Redacted%\%Redacted%\%Redacted%
get *.C2M M:\%Redacted%\%Redacted%\%Redacted%\

# delete files on dtn server
rm *.C2M

# good bye
bye


Works great when I execute the scripts manually...
execute ftprun.cmd ...once it finishes then I run my filename_appender.cmd
but my ftprun.cmd craps out every time when I run it from a scheduled task
read on the winscp site to use a defined .ini and path, so I am.. still don't work
Any assistance is appreciated.