Topic "Trouble shooting SQL 2000 cannot open file ftp file"

Author Message
mrosales

Guest


Hello,

I am receiving the following error message

Executed as user: NACCRRA\sqlservers. C:\Windows\system32> c\program files\winscp\winscp.com /script=FTPOAPToKTTransfer.ftpCannot open file FTPOAPToKTTransfer.ftp. Process Exit Code 1. The step failed

We have a MS SQL 2000 job that is calling to the batch. The batch then runs the ftp file. The job is failing at step one.

We have the following environment

1. WinSCP ver 4.2.3 build 494
2. MS SQL 2000
3. Windows Server 2003 r2 sp2
4. Using SFTP
5. Using scripting/automation
6. Connecting to GlobalScapes EFT server


7. The command in the batch is
"c:\program files\winscp\winscp.com" /script=FTPOAPToKTTransfer.ftp

8. The commands with in the ftp file are
option confirm off
open Controltec
cd OAP
cd ApplicationExport
cd Staging
lcd D:\ImportExport\OAP
option transfer binary
get * -delete *
close
exit


Solution we tried
1. gave everyone full rights to the folder that contains the batch files
2. gave everyone full rights to the folder for WinSCP


What currently works is

Microsoft ftp client on the server. MS SQL 2000s job call to the batch and the batch runs the ftp commands using Microsofts ftp client.

The client is requesting to use SFTP to submit data.

Thank you for any assistance,
mrosales490@gmail.com
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
It seems that you execute WinSCP with C:\Windows\system32 as startup directory. As you do not specify path to the FTPOAPToKTTransfer.ftp script file, WinSCP looks for it in that directory. Is it there? If not, make sure you specify full path or start WinSCP from directory where the script is actually located.
_________________
Martin Prikryl
Guest




prikryl wrote:
It seems that you execute WinSCP with C:\Windows\system32 as startup directory. As you do not specify path to the FTPOAPToKTTransfer.ftp script file, WinSCP looks for it in that directory. Is it there? If not, make sure you specify full path or start WinSCP from directory where the script is actually located.



Hi Prikryl,

Are you referring to

"c:\program files\winscp\winscp.com" /script=c:\batch\FTPOAPToKTTransfer.ftp

Thank you,
Michael
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Yes.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License